git.iko.soy/typeable/pandoc
on master help sign in
DocBook reader: computeroutput is an inline tag, not block.
commit89fa0e4a08092c2d35038b52adc700fb297f1b7f authorJohn MacFarlane <fiddlosopher@gmail.com> dateSat 12 May 2012, 11:21 (14 years ago) parent0233dfa
1 file changed+2−2
src/Text/Pandoc/Readers/DocBook.hs+2−2
src/Text/Pandoc/Readers/DocBook.hs+2−2
@@ -557,7 +557,7 @@ isBlockElement (Elem e) = qName (elName e) `elem` blocktags
557557 "important","caution","note","tip","warning","qandadiv",
558558 "question","answer","abstract","itemizedlist","orderedlist",
559559 "variablelist","article","book","table","informaltable",
560− "computeroutput","screen","programlisting"]
560+ "screen","programlisting"]
561561isBlockElement _ = False
562562
563563-- Trim leading and trailing newline characters
@@ -697,7 +697,6 @@ parseBlock (Elem e) =
697697 "table" -> parseTable
698698 "informaltable" -> parseTable
699699 "literallayout" -> codeBlockWithLang ["literallayout"]
700− "computeroutput" -> codeBlockWithLang ["computeroutput"]
701700 "screen" -> codeBlockWithLang ["screen"]
702701 "programlisting" -> codeBlockWithLang []
703702 "?xml" -> return mempty
@@ -842,6 +841,7 @@ parseInline (Elem e) =
842841 "code" -> codeWithLang []
843842 "filename" -> codeWithLang ["filename"]
844843 "literal" -> codeWithLang []
844+ "computeroutput" -> codeWithLang ["computeroutput"]
845845 "prompt" -> codeWithLang ["prompt"]
846846 "parameter" -> codeWithLang ["parameter"]
847847 "option" -> codeWithLang ["option"]