mondeja / mdpo

Markdown files translation using GNU PO files
https://mondeja.github.io/mdpo/
BSD 3-Clause "New" or "Revised" License
25 stars 5 forks source link

po2md does not respect indentation and newline #299

Closed SantosSi closed 5 months ago

SantosSi commented 6 months ago

File contents, stripped down to the core content Source files english.md:

- Level 1: Situation assessment

    I have identified:

or:

- Level 1: Situation assessment
    I have identified:

and .po file en2de.po:

#. Progress Assessment: Level 1
#: ../content/55_activity_37.md:block 18 (ordered list)
msgid "Level 1: Situation assessment"
msgstr "Ebene 1: Situationsbeurteilung"

#. Progress Assessment: Level 1 Situation assessment
#: ../content/55_activity_37.md:block 19 (unordered list)
msgid "I have identified:"
msgstr "Ich habe identifiziert:"

create the same bad result german.md:

- Level 1: Situation assessment I have identified:

with the command:

po2md -q --po-encoding UTF-8 -p en2de.po -s german.md english.md

Version: po2md 2.0.0

mondeja commented 5 months ago

Thanks for the report, this has been fixed in v2.0.1.