Closed paususe closed 2 years ago
It seems that comments management of Po4a does not follow the asciidoc "norm" according to asciidoctor. In the documentation of asciidoctor, it is written that single line comments break the block structures, where as in Po4a tests, a line comment does not split a paragraph.
In fact, I'm not even sure that the behavior is consistent between asciidoc and asciidoctor here.
Hello all. @jnavila just commited a potential fix for this issue.
@paususe, could you please confirm that this problem is fixed by the current git version?
Thx,
@paususe do you think that we could close this bug, or is there any remaining issue? @jnavila what's your feeling here?
Thanks to both of you, Mt
The changeset passed the modified unittests. But there may be some corner cases in the real world that were missed.
If so, I think we can close this bug. @paususe feel free to reopen it on need, or to submit another one.
Thanks a lot,
Let's say you have something like this valid AsciiDoc in source.adoc:
This is rendered by AsciiDoc as:
After AsciiDoc => gettext => AsciiDoc conversion, this is what you get:
Now there are two consecutive "+" signs, which AsciiDoc understands as "the first + sign is to join those lines 1 and 3 in the same paragraph, and I am asked to print the second + sign", so it renders like this:
I am attaching a full example.
po4acomments.zip