diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2007-01-01 22:07:19 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2007-01-01 22:07:19 +0000 |
commit | 27169438551c1edfb8a2251a70ae607a7db36b29 (patch) | |
tree | 4e4c300a2a44806250502767f4c7b29fbdfa6bce /src/Text/Pandoc/Writers | |
parent | ae869a092ac3f3f8c91b95b0d67910f96c491db5 (diff) | |
download | pandoc-27169438551c1edfb8a2251a70ae607a7db36b29.tar.gz |
Changed representation of code blocks to use <screen> and
escaped characters rather than <programlisting> and CDATA.
Reason: XML source more easily editable and readable.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@393 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r-- | src/Text/Pandoc/Writers/Docbook.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/Docbook.hs b/src/Text/Pandoc/Writers/Docbook.hs index d025b7ac2..3916aa214 100644 --- a/src/Text/Pandoc/Writers/Docbook.hs +++ b/src/Text/Pandoc/Writers/Docbook.hs @@ -158,7 +158,7 @@ blockToDocbook options (Para lst) = blockToDocbook options (BlockQuote blocks) = indentedInTags options "blockquote" (blocksToDocbook options blocks) blockToDocbook options (CodeBlock str) = - text "<programlisting>" <> (cdata str) <> text "</programlisting>" + text "<screen>\n" <> text (codeStringToXML str) <> text "\n</screen>" blockToDocbook options (BulletList lst) = indentedInTags options "itemizedlist" $ listItemsToDocbook options lst blockToDocbook options (OrderedList lst) = |