mquinson / po4a

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

AsciiDoc: numbered list or TIP box text starting with bold markup becomes no-wrap #447

Closed rffontenelle closed 6 months ago

rffontenelle commented 6 months ago

When the first word of the TIP box (haven't check others boxes) and numbered list is surrounded by asterisk to denote bold markup, the whole string is extracted as a no-wrap string.

Take this master test.adoc:

TIP: we're starting a
multi-line
Tip box.

TIP: *now bold*
text in
the beginning

1. Now a
numbered
item
2. *starting* with
bold word

Run po4a-updatepo --format asciidoc --master test.adoc --master-charset UTF-8 --po test.pot

The resulting POT file:

#. type: Plain text
#: test.adoc:4
msgid "we're starting a multi-line Tip box."
msgstr ""

#. type: Plain text
#: test.adoc:8
#, no-wrap
msgid ""
"*now bold*\n"
"text in\n"
"the beginning\n"
msgstr ""

#. type: Plain text
#: test.adoc:12
msgid "Now a numbered item"
msgstr ""

#. type: Plain text
#: test.adoc:14
#, no-wrap
msgid ""
"*starting* with\n"
"bold word\n"
msgstr ""
$ po4a-updatepo --version | head -1
po4a-updatepo version 0.69.