aboutsummaryrefslogtreecommitdiff
path: root/test/Tests
diff options
context:
space:
mode:
authorEmily Bourke <undergroundquizscene@protonmail.com>2021-09-17 16:05:06 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2021-10-17 17:24:30 -0700
commit8af15ab345bb0790cc3442722673d9da9f23a79c (patch)
tree573a438aa9d684178aabc3666e755862cd031beb /test/Tests
parent3f489bcb5897898d453bef549d6eba5f5d2120bf (diff)
downloadpandoc-8af15ab345bb0790cc3442722673d9da9f23a79c.tar.gz
pptx: Fix list level numbering
In PowerPoint, the content of a top-level list is at the same level as the content of a top-level paragraph – the only difference is that a list style has been applied. At the moment, the pptx writer increments the paragraph level on each list, turning what should be top-level lists into second-level lists. This commit changes that logic, only incrementing the paragraph level on continuation paragraphs of lists. - Fixes https://github.com/jgm/pandoc/issues/4828 - Fixes https://github.com/jgm/pandoc/issues/4663
Diffstat (limited to 'test/Tests')
-rw-r--r--test/Tests/Writers/Powerpoint.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Tests/Writers/Powerpoint.hs b/test/Tests/Writers/Powerpoint.hs
index 84bdd7476..f3663efbb 100644
--- a/test/Tests/Writers/Powerpoint.hs
+++ b/test/Tests/Writers/Powerpoint.hs
@@ -66,6 +66,10 @@ tests = let
def
"pptx/start-numbering-at/input.native"
"pptx/start-numbering-at/output.pptx"
+ , pptxTests "List continuation paragraph indentation"
+ def
+ "pptx/list-level/input.native"
+ "pptx/list-level/output.pptx"
, pptxTests "tables"
def
"pptx/tables/input.native"