[Bug 251329] textproc/asciidoc: extraneous carriage returns in output
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Nov 24 21:44:34 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251329
--- Comment #2 from Diane Bruce <db at FreeBSD.org> ---
Your fix does not work.
I've narrowed it down to the use of -a toc
e.g. ascidoc -a toc file.txt
The bug is in template processing:
...
elif name == 'template':
if args not in config.sections:
message.warning('%s: template does not exist' % syntax)
else:
result = []
for line in config.sections[args]:
line = subs_attrs(line)
if line is not None:
result.append(line)
result = '\n'.join(result)
# result = DEFAULT_NEWLINE.
This hack works but is obviously the wrong fix. ;)
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list