From e67f4c58f2cbe0a0fc5f73d2e726e6c0a403bbea Mon Sep 17 00:00:00 2001 From: Jeroen de Haas Date: Fri, 14 Jun 2019 17:42:06 +0200 Subject: Powerpoint code formatting is now context dependent (#5573) This commit alters the way in which the Powerpoint writer treats inline code and code blocks. - Inline code is now formatted at the same size as the surrounding text. - Code blocks are now given a margin and font size according to their level. - Furthermore this commit allows changing the font with which code is formatted via the `monofont` option. Tested in - PowerPoint 365 for Windows - 1808 (Build 10730.20344 Click-to-Run) - PowerPoint 365 for Mac - 16.26 (19060901) --- test/Tests/Writers/Powerpoint.hs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/Tests/Writers') diff --git a/test/Tests/Writers/Powerpoint.hs b/test/Tests/Writers/Powerpoint.hs index eb4b584e5..c21ee49a4 100644 --- a/test/Tests/Writers/Powerpoint.hs +++ b/test/Tests/Writers/Powerpoint.hs @@ -115,4 +115,12 @@ tests = groupPptxTests [ pptxTests "Inline formatting" def "pptx/document-properties-short-desc.native" "pptx/document-properties-short-desc.pptx" + , pptxTests "inline code and code blocks" + def + "pptx/code.native" + "pptx/code.pptx" + , pptxTests "inline code and code blocks, custom formatting" + def { writerVariables = [("monofont", "Consolas")] } + "pptx/code.native" + "pptx/code-custom.pptx" ] -- cgit v1.2.3