diff options
author | Jeroen de Haas <jeroendehaas@users.noreply.github.com> | 2019-06-14 17:42:06 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-06-14 08:42:06 -0700 |
commit | e67f4c58f2cbe0a0fc5f73d2e726e6c0a403bbea (patch) | |
tree | dbd0a28882cf524ee32c834053f4df820675f749 /test/Tests | |
parent | 2cd1c7b30f200d18f1f1bdef1671369e1ad303ed (diff) | |
download | pandoc-e67f4c58f2cbe0a0fc5f73d2e726e6c0a403bbea.tar.gz |
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)
Diffstat (limited to 'test/Tests')
-rw-r--r-- | test/Tests/Writers/Powerpoint.hs | 8 |
1 files changed, 8 insertions, 0 deletions
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" ] |