aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2007-07-12 03:40:01 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2007-07-12 03:40:01 +0000
commita9f894c130ef5eba13477c7941a15b95712b25e0 (patch)
treea892f0cee7c644834112e5dfa6df9b3225d30da2
parent2bca833da0f8cb6a6fc9bfbeff09a89fe49f1f94 (diff)
downloadpandoc-a9f894c130ef5eba13477c7941a15b95712b25e0.tar.gz
If writer == "s5", don't set table of contents option.
(The TOC would have to be put on a slide, but in most cases it won't fit anyway.) git-svn-id: https://pandoc.googlecode.com/svn/trunk@678 788f1e2b-df1e-0410-8736-df70ead52e1b
-rw-r--r--src/Main.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Main.hs b/src/Main.hs
index 3c206755c..eabb19e85 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -480,7 +480,8 @@ main = do
writerTitlePrefix = titlePrefix,
writerTabStop = tabStop,
writerTableOfContents = toc &&
- (not strict),
+ (not strict) &&
+ writerName/="s5",
writerS5 = (writerName=="s5"),
writerIgnoreNotes = False,
writerIncremental = incremental,