RTF writer: emit \outlinelevel for section headings.

This commit is contained in:
John MacFarlane 2021-08-04 16:37:20 -06:00
parent 407de98b5e
commit dea1f0f080
2 changed files with 33 additions and 32 deletions

View file

@ -259,7 +259,8 @@ blockToRTF indent _ HorizontalRule = return $
blockToRTF indent alignment (Header level _ lst) = do
contents <- inlinesToRTF lst
return $ rtfPar indent 0 alignment $
"\\b \\fs" <> tshow (40 - (level * 4)) <> " " <> contents
"\\outlinelevel" <> tshow (level - 1) <>
" \\b \\fs" <> tshow (40 - (level * 4)) <> " " <> contents
blockToRTF indent alignment (Table _ blkCapt specs thead tbody tfoot) = do
let (caption, aligns, sizes, headers, rows) = toLegacyTable blkCapt specs thead tbody tfoot
caption' <- inlinesToRTF caption

File diff suppressed because one or more lines are too long