git.iko.soy/typeable/pandoc
on master help sign in
Removed writerInclude{Before,After} from WriterOptions.
15cc99cJohn MacFarlane
src/Text/Pandoc/Shared.hs−4
@@ -462,8 +462,6 @@ data WriterOptions = WriterOptions
462 { writerStandalone :: Bool -- ^ Include header and footer
462 { writerStandalone :: Bool -- ^ Include header and footer
463 , writerTemplate :: String -- ^ Template to use in standalone mode
463 , writerTemplate :: String -- ^ Template to use in standalone mode
464 , writerVariables :: [(String, String)] -- ^ Variables to set in template
464 , writerVariables :: [(String, String)] -- ^ Variables to set in template
465− , writerIncludeBefore :: String -- ^ Text to include before the body
466− , writerIncludeAfter :: String -- ^ Text to include after the body
467 , writerTabStop :: Int -- ^ Tabstop for conversion btw spaces and tabs
465 , writerTabStop :: Int -- ^ Tabstop for conversion btw spaces and tabs
468 , writerTableOfContents :: Bool -- ^ Include table of contents
466 , writerTableOfContents :: Bool -- ^ Include table of contents
469 , writerS5 :: Bool -- ^ We're writing S5
467 , writerS5 :: Bool -- ^ We're writing S5
@@ -486,8 +484,6 @@ defaultWriterOptions =
486 WriterOptions { writerStandalone = False
484 WriterOptions { writerStandalone = False
487 , writerTemplate = ""
485 , writerTemplate = ""
488 , writerVariables = []
486 , writerVariables = []
489− , writerIncludeBefore = ""
490− , writerIncludeAfter = ""
491 , writerTabStop = 4
487 , writerTabStop = 4
492 , writerTableOfContents = False
488 , writerTableOfContents = False
493 , writerS5 = False
489 , writerS5 = False
src/pandoc.hs−8
@@ -145,8 +145,6 @@ data Opt = Opt
145 , optTransforms :: [Pandoc -> Pandoc] -- ^ Doc transforms to apply
145 , optTransforms :: [Pandoc -> Pandoc] -- ^ Doc transforms to apply
146 , optTemplate :: String -- ^ Custom template
146 , optTemplate :: String -- ^ Custom template
147 , optVariables :: [(String,String)] -- ^ Template variables to set
147 , optVariables :: [(String,String)] -- ^ Template variables to set
148− , optBefore :: [String] -- ^ Texts to include before body
149− , optAfter :: [String] -- ^ Texts to include after body
150 , optOutputFile :: String -- ^ Name of output file
148 , optOutputFile :: String -- ^ Name of output file
151 , optNumberSections :: Bool -- ^ Number sections in LaTeX
149 , optNumberSections :: Bool -- ^ Number sections in LaTeX
152 , optIncremental :: Bool -- ^ Use incremental lists in S5
150 , optIncremental :: Bool -- ^ Use incremental lists in S5
@@ -186,8 +184,6 @@ defaultOpts = Opt
186 , optTransforms = []
184 , optTransforms = []
187 , optTemplate = ""
185 , optTemplate = ""
188 , optVariables = []
186 , optVariables = []
189− , optBefore = []
190− , optAfter = []
191 , optOutputFile = "-" -- "-" means stdout
187 , optOutputFile = "-" -- "-" means stdout
192 , optNumberSections = False
188 , optNumberSections = False
193 , optIncremental = False
189 , optIncremental = False
@@ -624,8 +620,6 @@ main = do
624 , optWriter = writerName
620 , optWriter = writerName
625 , optParseRaw = parseRaw
621 , optParseRaw = parseRaw
626 , optVariables = variables
622 , optVariables = variables
627− , optBefore = befores
628− , optAfter = afters
629 , optTableOfContents = toc
623 , optTableOfContents = toc
630 , optTransforms = transforms
624 , optTransforms = transforms
631 , optTemplate = template
625 , optTemplate = template
@@ -757,8 +751,6 @@ main = do
757 then defaultTemplate
751 then defaultTemplate
758 else template,
752 else template,
759 writerVariables = variables'',
753 writerVariables = variables'',
760− writerIncludeBefore = concat befores,
761− writerIncludeAfter = concat afters,
762 writerTabStop = tabStop,
754 writerTabStop = tabStop,
763 writerTableOfContents = toc &&
755 writerTableOfContents = toc &&
764 writerName' /= "s5",
756 writerName' /= "s5",