git.iko.soy/typeable/pandoc
on master help sign in
Powerpoint tests: test raw openxml

Output files confirmed not to be corrupt, and with content as expected, on PowerPoint 2013 on Windows 10 (virtualbox on linux).

commit11e681edac3cbdc94af90bee8370e8aa4fddf955 authorJesse Rosenthal <jrosenthal@jhu.edu> dateSat 20 Oct 2018, 09:00 (8 years ago) parent5547cd6
4 files changed+7−1
test/Tests/Writers/Powerpoint.hs+4−1 test/pptx/raw_ooxml.native+3 test/pptx/raw_ooxml.pptx test/pptx/raw_ooxml_templated.pptx
test/Tests/Writers/Powerpoint.hs+4−1
@@ -95,5 +95,8 @@ tests = groupPptxTests [ pptxTests "Inline formatting"
9595 def
9696 "pptx/remove_empty_slides.native"
9797 "pptx/remove_empty_slides.pptx"
98−
98+ , pptxTests "raw ooxml"
99+ def
100+ "pptx/raw_ooxml.native"
101+ "pptx/raw_ooxml.pptx"
99102 ]
test/pptx/raw_ooxml.nativenew file+3
@@ -0,0 +1,3 @@
1+[Para [Str "Here",Space,Str "is",Space,Str "some",Space,Str "text,",Space,Str "written",Space,Str "as",Space,Str "a",Space,Str "raw",Space,Str "inline:",Space,RawInline (Format "openxml") "<a:r><a:rPr /><a:t>Here are examples of </a:t></a:r><a:r><a:rPr i=\"1\" /><a:t>italics</a:t></a:r><a:r><a:rPr /><a:t>, </a:t></a:r><a:r><a:rPr b=\"1\" /><a:t>bold</a:t></a:r>"]
2+,HorizontalRule
3+,RawBlock (Format "openxml") " <p:sp>\n <p:nvSpPr>\n <p:cNvPr id=\"3\" name=\"Content Placeholder 2\"/>\n <p:cNvSpPr>\n <a:spLocks noGrp=\"1\"/>\n </p:cNvSpPr>\n <p:nvPr>\n <p:ph idx=\"1\"/>\n </p:nvPr>\n </p:nvSpPr>\n <p:spPr/>\n <p:txBody>\n <a:bodyPr/>\n <a:lstStyle/>\n <a:p>\n <a:pPr lvl=\"1\"/>\n <a:r>\n <a:rPr/>\n <a:t>Bulleted bulleted lists.</a:t>\n </a:r>\n </a:p>\n <a:p>\n <a:pPr lvl=\"1\"/>\n <a:r>\n <a:rPr/>\n <a:t>And go to arbitrary depth.</a:t>\n </a:r>\n </a:p>\n <a:p>\n <a:pPr lvl=\"2\"/>\n <a:r>\n <a:rPr/>\n <a:t>Like this</a:t>\n </a:r>\n </a:p>\n <a:p>\n <a:pPr lvl=\"3\"/>\n <a:r>\n <a:rPr/>\n <a:t>Or this</a:t>\n </a:r>\n </a:p>\n <a:p>\n <a:pPr lvl=\"2\"/>\n <a:r>\n <a:rPr/>\n <a:t>Back to here.</a:t>\n </a:r>\n </a:p>\n </p:txBody>\n </p:sp>"]
test/pptx/raw_ooxml.pptxnew file

Binary file not shown.

test/pptx/raw_ooxml_templated.pptxnew file

Binary file not shown.