Skip to content
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: numbered list or TIP box text starting with bold markup becomes no-wrap #447

Closed
rffontenelle opened this issue Dec 14, 2023 · 0 comments · Fixed by #449
Closed

Comments

@rffontenelle
Copy link
Contributor

rffontenelle commented Dec 14, 2023

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.
@rffontenelle rffontenelle changed the title AsciiDoc: numered list or TIP box text starting with bold markup becomes no-wrap AsciiDoc: numbered list or TIP box text starting with bold markup becomes no-wrap Dec 14, 2023
jnavila added a commit that referenced this issue Dec 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant