Closed oliverrahner closed 2 years ago
Hello there,
thanks for this pull request, that's really welcomed. But unfortunately, I cannot merge it until we have a sufficient set of tests covering this new feature. The CONTRIBUTING file shall explain how to add a new test, if I remember correctly.
Thanks again for your interest in po4a and for your contribution, Mt
I added two tests, which cover the two new cases
Merged, thanks.
I have the need to filter which specific paths should be extracted from my Yaml files, not only on the key name.
To stay backwards compatible I didn't modify the handling of the
keys
parameter, but instead introduced a new one.Example:
/usr/src/po4a/po4a-gettextize -d -f yaml -m en/antora-playbook.yml -o paths="site title,site url,asciidoc attributes idseparator" -o keys="url" -o skip_array
This would include all keys named
url
and additionally the specific elements addressed by the paths: