diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-04-12 21:49:08 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-04-12 22:06:44 -0700 |
commit | 0439f6f964036de9b3c937f1cca80f825d0cc0fe (patch) | |
tree | 6394de65ffe36ad7e26be790f2f4d27c7c98b725 /src/Text | |
parent | fee04fbee08c7deab6c88853540d728f7e613102 (diff) | |
download | pandoc-0439f6f964036de9b3c937f1cca80f825d0cc0fe.tar.gz |
Fixed toc depth in RST writer.
Previously the depth was being rendered as a floating point
number with a decimal point. Thanks to Nick Yakimov for
noticing this.
Diffstat (limited to 'src/Text')
-rw-r--r-- | src/Text/Pandoc/Writers/RST.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/RST.hs b/src/Text/Pandoc/Writers/RST.hs index 7d1e22baa..2f4c9575e 100644 --- a/src/Text/Pandoc/Writers/RST.hs +++ b/src/Text/Pandoc/Writers/RST.hs @@ -89,7 +89,7 @@ pandocToRST (Pandoc meta blocks) = do let main = render colwidth $ foldl ($+$) empty $ [body, notes, refs, pics] let context = defField "body" main $ defField "toc" (writerTableOfContents opts) - $ defField "toc-depth" (writerTOCDepth opts) + $ defField "toc-depth" (show $ writerTOCDepth opts) $ defField "math" hasMath $ defField "title" (render Nothing title :: String) $ defField "math" hasMath |