-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Multiple --csl arguments give bad error message #8195
Comments
I described the source of the error is appending to meta, and then using meta as a single file path. |
Yes, I think that's a good idea. If you specify two |
Can I take a stab at this? |
Go for it! |
I am looking into this and wondering if we should
Any opinions on this? |
Explain the problem.
If using
pandoc
within a build pipeline, one may mistakenly give two--csl
arguments:This will give a spurious error message when
pandoc
tries to findstyle1.csl style2.csl
which is not a file.The issue stems from the fact that
Text.Pandoc.App.CommandLineOptions.addMeta
tries to append data to the previous meta.Unfortunately,
--csl
option does not treat the input as a list of styles, instead merges it.Would it be more convenient to use separate
replaceMeta
(possibly with a warning when previous metadata was non-empty), or change parsing of meta only for CSL?Currently
Text.Pandoc.Citeproc.getStyle
simply usesmetaValueToText
before trying to read it as a full path.Pandoc version?
This is Linux version.
The text was updated successfully, but these errors were encountered: