From 7c10e579976a3016d86b613cf4f8b25e3c01a7da Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 5 Jan 2013 11:34:23 -0800 Subject: Changed `--epub-toc-level` to `--toc-level`. Also writerEpubTOCLevel -> writerTOCLevel. So far this is only implemented in the EPUB writer. --- src/Text/Pandoc/Options.hs | 4 ++-- src/Text/Pandoc/Writers/EPUB.hs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Text/Pandoc') diff --git a/src/Text/Pandoc/Options.hs b/src/Text/Pandoc/Options.hs index ef8350840..e51d7d3f6 100644 --- a/src/Text/Pandoc/Options.hs +++ b/src/Text/Pandoc/Options.hs @@ -238,7 +238,7 @@ data WriterOptions = WriterOptions , writerEpubStylesheet :: Maybe String -- ^ EPUB stylesheet specified at command line , writerEpubFonts :: [FilePath] -- ^ Paths to fonts to embed , writerEpubChapterLevel :: Int -- ^ Header level for chapters (separate files) - , writerEpubTOCLevel :: Int -- ^ Number of levels to include in TOC + , writerTOCLevel :: Int -- ^ Number of levels to include in TOC , writerReferenceODT :: Maybe FilePath -- ^ Path to reference ODT if specified , writerReferenceDocx :: Maybe FilePath -- ^ Ptah to reference DOCX if specified } deriving Show @@ -278,7 +278,7 @@ instance Default WriterOptions where , writerEpubStylesheet = Nothing , writerEpubFonts = [] , writerEpubChapterLevel = 1 - , writerEpubTOCLevel = 3 + , writerTOCLevel = 3 , writerReferenceODT = Nothing , writerReferenceDocx = Nothing } diff --git a/src/Text/Pandoc/Writers/EPUB.hs b/src/Text/Pandoc/Writers/EPUB.hs index a33428c71..9e97effeb 100644 --- a/src/Text/Pandoc/Writers/EPUB.hs +++ b/src/Text/Pandoc/Writers/EPUB.hs @@ -229,7 +229,7 @@ writeEPUB version opts doc@(Pandoc meta _) = do -- toc.ncx let secs = hierarchicalize blocks'' - let tocLevel = writerEpubTOCLevel opts + let tocLevel = writerTOCLevel opts let navPointNode :: (Int -> String -> String -> [Element] -> Element) -> Shared.Element -> State Int Element -- cgit v1.2.3