diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-08-04 16:37:20 -0600 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-08-04 16:37:20 -0600 |
commit | dea1f0f080ada91e9840f90d15ca2b12ab29d9da (patch) | |
tree | 9ae3ad12a4b86b5d5585fd6cf8a19499f5f8eafb /src/Text/Pandoc/Writers | |
parent | 407de98b5e3971c84c7e89de5f2a9d317b4d4557 (diff) | |
download | pandoc-dea1f0f080ada91e9840f90d15ca2b12ab29d9da.tar.gz |
RTF writer: emit \outlinelevel for section headings.
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r-- | src/Text/Pandoc/Writers/RTF.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/RTF.hs b/src/Text/Pandoc/Writers/RTF.hs index 24a90a0a6..063371ebc 100644 --- a/src/Text/Pandoc/Writers/RTF.hs +++ b/src/Text/Pandoc/Writers/RTF.hs @@ -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 |