diff options
author | Jesse Rosenthal <jrosenthal@jhu.edu> | 2018-01-03 21:58:39 -0500 |
---|---|---|
committer | Jesse Rosenthal <jrosenthal@jhu.edu> | 2018-01-03 21:58:39 -0500 |
commit | bf15258d3b18bd2a7daae803b52a9b851eb204eb (patch) | |
tree | 567ec6b9c24380aca18aa51d5c35dc7ec8dd8354 /src/Text/Pandoc | |
parent | 41dc65b37f19fefb5036d40d631a9d29561dc422 (diff) | |
download | pandoc-bf15258d3b18bd2a7daae803b52a9b851eb204eb.tar.gz |
Powerpoint writer: Set default slidelevel correctly.
We had previously defaulted to slideLevel 2. Now we use the correct
behavior of defaulting to the highest level header followed by
content. We change an expected test result to match this behavior.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Writers/Powerpoint.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/Powerpoint.hs b/src/Text/Pandoc/Writers/Powerpoint.hs index 073cd72a1..e5c29b75a 100644 --- a/src/Text/Pandoc/Writers/Powerpoint.hs +++ b/src/Text/Pandoc/Writers/Powerpoint.hs @@ -47,6 +47,7 @@ import Text.Pandoc.Definition import qualified Text.Pandoc.UTF8 as UTF8 import Text.Pandoc.Class (PandocMonad) import Text.Pandoc.Error (PandocError(..)) +import Text.Pandoc.Slides (getSlideLevel) import qualified Text.Pandoc.Class as P import Text.Pandoc.Options import Text.Pandoc.MIME @@ -86,7 +87,7 @@ writePowerpoint opts (Pandoc meta blks) = do , envOpts = opts , envSlideLevel = case writerSlideLevel opts of Just n -> n - Nothing -> 2 + Nothing -> getSlideLevel blks' } runP env def $ do pres <- blocksToPresentation blks' archv <- presentationToArchive pres |