-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AsciiDoc: comments are ignored, breaking markup #308
Comments
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. |
Comments must appear translated contents to preserve document structure. fix mquinson#307 and mquinson#308
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
The text was updated successfully, but these errors were encountered: