Powerpoint writer: Set notes slide header with slide-level

It used to be hardcoded to 2. This will set it to the appropriate
slide-level.
This commit is contained in:
Jesse Rosenthal 2018-01-12 10:48:28 -05:00
parent 021e5ac89d
commit 1d9c2770e3

View file

@ -648,9 +648,10 @@ forceFontSize px x = do
makeNotesSlides :: PandocMonad m => P m [Slide]
makeNotesSlides = local (\env -> env{envInNoteSlide=True}) $ do
noteIds <- gets stNoteIds
slideLevel <- asks envSlideLevel
if M.null noteIds
then return []
else do let hdr = Header 2 nullAttr [Str "Notes"]
else do let hdr = Header slideLevel nullAttr [Str "Notes"]
blks <- return $
concatMap (\(n, bs) -> makeNoteEntry n bs) $
M.toList noteIds