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
This commit is contained in:
stalmon
2018-01-02 01:14:36 +01:00
committed by GitHub
parent ecc46e229f
commit 4f43a1d250
+1 -3
View File
@@ -763,9 +763,7 @@ makeTOC _ = return []
-- OpenXML elements (the main document and footnotes).
writeOpenXML :: (PandocMonad m) => WriterOptions -> Pandoc -> WS m ([Element], [Element],[Element])
writeOpenXML opts (Pandoc meta blocks) = do
let tit = docTitle meta ++ case lookupMeta "subtitle" meta of
Just (MetaBlocks [Plain xs]) -> LineBreak : xs
_ -> []
let tit = docTitle meta
let auths = docAuthors meta
let dat = docDate meta
let abstract' = case lookupMeta "abstract" meta of