mquinson / po4a

Maintain the translations of your documentation with ease (PO for anything)
http://po4a.org/
GNU General Public License v2.0
127 stars 62 forks source link

AsciiDoc: Hard line breaks are destroyed #385

Closed oliverrahner closed 2 years ago

oliverrahner commented 2 years ago

Hard line breaks (https://docs.asciidoctor.org/asciidoc/latest/blocks/hard-line-breaks/) are not recognized during parsing.

A hard line break is recognizable by the three chars " +\n" in sequence. Because paragraphs have their intermediate line breaks removed, this will break, leaving us with only " + ", which leads to unfortunate output like this:

image

as opposed to the original:

image

jnavila commented 2 years ago

It is supported since version 0.67. If it does not work, please provide a minimal counter example.

oliverrahner commented 2 years ago

My mistake... turns out I had a mix of versions installed, one from a package repo and one as a git clone, that broke my files. And when I checked for the version explicitly, po4a didn't do anything because the po file seemed up to date :-/

In short: Everything works as I would expect now.