summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/App/CommandLineOptions.hs
diff options
context:
space:
mode:
authorDaniel Kessler <dkess@dkess.me>2023-01-29 13:38:54 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2023-01-29 16:40:32 -0800
commit9dbb75dacb26e8482f62fcfaeb7a48ff7b1d7f0e (patch)
tree636fe0d8a8bfae81716a165b9878126c10a42205 /src/Text/Pandoc/App/CommandLineOptions.hs
parent5d3b61a048bf0101e780bf61faabeea21ef93f90 (diff)
ODT reader: fix blockquote indent detection
The ODT reader is supposed to detect blockquotes by checking a paragraph style's indentation level. But it's broken for two reasons: * The parser fails on non-integers. So "1in" will get read as 25mm, but "1.0in" fails. By default, the Quotations style is "0.3937in". * The reader doesn't check indentation levels of parent styles. In my test documents, LibreOffice often creates child styles for individual paragraphs, so it's important to check parents (ODT files created by the Pandoc ODT writer don't have this issue though). I added a new test "blockquote2" whose ODT file is generated directly from the corresponding Markdown file with pandoc. Fixes #3437.
Diffstat (limited to 'src/Text/Pandoc/App/CommandLineOptions.hs')
0 files changed, 0 insertions, 0 deletions