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.
This commit is contained in:
John MacFarlane 2015-04-12 21:49:08 -07:00
parent fee04fbee0
commit 0439f6f964

View file

@ -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