Closed eevan78 closed 3 years ago
OH. I didn't know this feature of asciidoctor. This should be easy to add, but I'm not sure to have time soon. If you need it quickly and have basic knowledge of Perl, look at
Where comments are processed.
Thanks a lot for the tip, I'll give it a try!
Here is a working solution in my case. Tested with 2 files from Weechat documentation that contain them. I'm not sure if it is good in general, because I don't know where these special tag comments can be placed. Thanks for the tip. asciidoc-diff.zip
Hello all. @jnavila just commited a potential fix for this issue.
@eevan78, could you please confirm that this problem is fixed by the current git version? I'm confident since the patch was tested manually in the past, but please reopen this bug if it's not the case.
Thx,
@mquinson, I have tried the current git version, and I can confirm that the fix is working as expected in my test files. Comments are passed through correctly.
Thanks!
Please thank @jnavila for the hard work :) And thanks for the confirmation.
Of course, big thanks to @jnavila for solving the issue and pointing me to the right direction! 👏
I'm translating Weechat documentation using po4a. Source files are in .adoc format and get processed with Asciidoctor to produce HTML.
Asciidoctor is using some tags in comments like this:
After po4a processing, these tags get into the comments of appropriate .po msgid strings, but discarded on generation to adoc.
Without these tags, Asciidoctor is producing errors.
Is there a way to simply pass the comments to the output, at the same position as where they appear in the original document?