diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2023-07-19 10:56:35 -0700 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2023-07-19 11:56:58 -0700 |
| commit | bec5429e4f7180af135cabc2dc79b82a406a357d (patch) | |
| tree | 6d15a1e8c31931a57347881818b895ce2ad00b79 /pandoc-lua-engine/test/lua/meta.lua | |
| parent | 5b2128512df61085c4a0ae364030482f21626dc6 (diff) | |
Fix regression on short boolean arguments.
In 3.1.5 boolean arguments were allowed an optional argument
(true|false). This created a regression for uses of fused
short arguments, e.g. `-somyfile.html`, which was equivalent
to `-s -omyfile.html`, but now raised an error because
pandoc attempted to parse `o` as a boolean `true` or `false`.
This change adds a preprocessing step on the raw arguments
before they are sent to the option parser. In this preprocessing
step, `-somyfile.html` would be split into two arguments,
`-s` and `-omyfile.html`. The splitting happens when a
short boolean option is followed by another short option.
Closes #8956.
Diffstat (limited to 'pandoc-lua-engine/test/lua/meta.lua')
0 files changed, 0 insertions, 0 deletions
