Set writerTableOfContents for s5 in Text.Pandoc, not pandoc.hs.

This commit is contained in:
John MacFarlane
2012-07-23 22:58:16 -07:00
parent 1bd0c47968
commit fb6e798917
2 changed files with 3 additions and 3 deletions
+2 -1
View File
@@ -192,7 +192,8 @@ writers = [("native" , writeNative)
writeHtmlString o{ writerLiterateHaskell = True,
writerHtml5 = True })
,("s5" , \o ->
writeHtmlString o{ writerSlideVariant = S5Slides })
writeHtmlString o{ writerSlideVariant = S5Slides
, writerTableOfContents = False })
,("slidy" , \o ->
writeHtmlString o{ writerSlideVariant = SlidySlides })
,("slideous" , \o ->
+1 -2
View File
@@ -952,8 +952,7 @@ main = do
writerVariables = variables'',
writerEPUBMetadata = epubMetadata,
writerTabStop = tabStop,
writerTableOfContents = toc &&
writerName' /= "s5",
writerTableOfContents = toc,
writerHTMLMathMethod = mathMethod,
writerIncremental = incremental,
writerCiteMethod = citeMethod,