diff options
author | Milan Bracke <mbracke@antidot.net> | 2021-10-01 11:34:14 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-10-10 16:27:32 -0700 |
commit | 0f98cbff4b61b8e79f386f77d18b3218f1214b25 (patch) | |
tree | c1e84cd77596e314974cd28e09bd553275546856 /test/Tests | |
parent | 0ec16d151f4e7d3355fb6b6c9ead845a19b49dbc (diff) | |
download | pandoc-0f98cbff4b61b8e79f386f77d18b3218f1214b25.tar.gz |
Avoid blockquote when parent style has more indent
When a paragraph has an indentation different from the parent (named)
style, it used to be considered a blockquote. But this only makes sense
when the paragraph has more indentation. So this commit adds a check
for the indentation of the parent style.
Diffstat (limited to 'test/Tests')
-rw-r--r-- | test/Tests/Readers/Docx.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Tests/Readers/Docx.hs b/test/Tests/Readers/Docx.hs index 220c7d9c5..2f28af317 100644 --- a/test/Tests/Readers/Docx.hs +++ b/test/Tests/Readers/Docx.hs @@ -306,6 +306,10 @@ tests = [ testGroup "document" "docx/block_quotes.docx" "docx/block_quotes_parse_indent.native" , testCompare + "blockquotes (parsing indent relative to the indent of the parent style as blockquote)" + "docx/relative_indentation_blockquotes.docx" + "docx/relative_indentation_blockquotes.native" + , testCompare "hanging indents" "docx/hanging_indent.docx" "docx/hanging_indent.native" |