RTF writer: emit \outlinelevel for section headings.
This commit is contained in:
parent
407de98b5e
commit
dea1f0f080
2 changed files with 33 additions and 32 deletions
|
@ -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
Loading…
Reference in a new issue