"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Text/Pandoc/Readers/DocBook.hs" between
pandoc-2.11.1.1.tar.gz and pandoc-2.11.2.tar.gz

About: Pandoc converts files from one markup format into another.

DocBook.hs  (pandoc-2.11.1.1):DocBook.hs  (pandoc-2.11.2)
skipping to change at line 783 skipping to change at line 783
then return mempty then return mempty
else return $ plain $ trimInlines $ text $ T.pack s else return $ plain $ trimInlines $ text $ T.pack s
parseBlock (CRef x) = return $ plain $ str $ T.toUpper $ T.pack x parseBlock (CRef x) = return $ plain $ str $ T.toUpper $ T.pack x
parseBlock (Elem e) = parseBlock (Elem e) =
case qName (elName e) of case qName (elName e) of
"toc" -> skip -- skip TOC, since in pandoc it's autogenerated "toc" -> skip -- skip TOC, since in pandoc it's autogenerated
"index" -> skip -- skip index, since page numbers meaningless "index" -> skip -- skip index, since page numbers meaningless
"para" -> parseMixed para (elContent e) "para" -> parseMixed para (elContent e)
"formalpara" -> do "formalpara" -> do
tit <- case filterChild (named "title") e of tit <- case filterChild (named "title") e of
Just t -> para . strong . (<> str ".") <$> Just t -> divWith ("",["formalpara-title"],[]) .
getInlines t para . strong <$> getInlines t
Nothing -> return mempty Nothing -> return mempty
(tit <>) <$> parseMixed para (elContent e) (tit <>) <$> parseMixed para (elContent e)
"simpara" -> parseMixed para (elContent e) "simpara" -> parseMixed para (elContent e)
"ackno" -> parseMixed para (elContent e) "ackno" -> parseMixed para (elContent e)
"epigraph" -> parseBlockquote "epigraph" -> parseBlockquote
"blockquote" -> parseBlockquote "blockquote" -> parseBlockquote
"attribution" -> skip "attribution" -> skip
"titleabbrev" -> skip "titleabbrev" -> skip
"authorinitials" -> skip "authorinitials" -> skip
"bibliography" -> sect 0 "bibliography" -> sect 0
 End of changes. 1 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)