From 0439f6f964036de9b3c937f1cca80f825d0cc0fe Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 12 Apr 2015 21:49:08 -0700 Subject: 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. --- src/Text/Pandoc/Writers/RST.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text/Pandoc') 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 -- cgit v1.2.3