git.iko.soy/typeable/pandoc
on master help sign in
Removed redundant subtitle in title

subtitle is allready used to create a subtitle for the document appending the subtitle to the main title leads to double subtitle in the document

commit4f43a1d250287e8d89ee5cd3c8b020ea6fe83758 authorstalmon <35015406+stalmon@users.noreply.github.com> dateTue 2 Jan 2018, 01:14 (9 years ago) parentecc46e2
1 file changed+1−3
src/Text/Pandoc/Writers/Docx.hs+1−3
src/Text/Pandoc/Writers/Docx.hs+1−3
@@ -763,9 +763,7 @@ makeTOC _ = return []
763763-- OpenXML elements (the main document and footnotes).
764764writeOpenXML :: (PandocMonad m) => WriterOptions -> Pandoc -> WS m ([Element], [Element],[Element])
765765writeOpenXML opts (Pandoc meta blocks) = do
766− let tit = docTitle meta ++ case lookupMeta "subtitle" meta of
767− Just (MetaBlocks [Plain xs]) -> LineBreak : xs
768− _ -> []
766+ let tit = docTitle meta
769767 let auths = docAuthors meta
770768 let dat = docDate meta
771769 let abstract' = case lookupMeta "abstract" meta of