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

Asciidoctor/Front Matter YAML issue with tags #354

Closed
dbaio opened this issue Jan 22, 2022 · 1 comment
Closed

Asciidoctor/Front Matter YAML issue with tags #354

dbaio opened this issue Jan 22, 2022 · 1 comment

Comments

@dbaio
Copy link
Contributor

dbaio commented Jan 22, 2022

Source file.
PO file.

PO pt-br.
Output file in pt-br.

po4a version 0.66 and prior releases has the same issue.

po4a-gettextize \
        --format asciidoc \
        --option compat=asciidoctor \
        --option yfm_keys=title,part,description \
        --master "po4a-asciidoctor-fm.adoc" \
        --master-charset "UTF-8" \
        --copyright-holder "The FreeBSD Project" \
        --package-name "FreeBSD Documentation" \
        --po "po4a-asciidoctor-fm.po"
po4a-translate \
                --format asciidoc \
                --option compat=asciidoctor \
                --option yfm_keys=title,part,description \
                --master "po4a-asciidoctor-fm.adoc" \
                --master-charset "UTF-8" \
                --po "po4a-asciidoctor-fm_pt-br.po" \
                --localized "po4a-asciidoctor-fm_pt-br.adoc" \
                --localized-charset "UTF-8"

-->

Difference from the original and translated file:

-trademarks: ["freebsd", "intel", "general"]
+trademarks: '["freebsd", "intel", "general"]'

-tags: ["bsdl", "gpl", "FreeBSD License"]
+tags: '["bsdl", "gpl", "FreeBSD License"]'

It's inserting quotes when there are tags in the front matter.

I'm reporting this so others can help, but the plan is to dig/debug po4a later.

@dbaio
Copy link
Contributor Author

dbaio commented Jan 24, 2022

Duplicated with #304

@dbaio dbaio closed this as completed Jan 24, 2022
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

No branches or pull requests

1 participant