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 "
@@ -169,19 +173,23 @@ Code: -+---- (should be four hyphens) sub status { print "working"; } -this code block is indented by one tab]]> +this code block is indented by one tab +And: -+ this code block is indented by two tabs -These should not be escaped: \$ \\ \> \[ \{]]> +These should not be escaped: \$ \\ \> \[ \{ +Lists @@ -839,7 +847,9 @@ Cat & 1 \\ \hlineThis should [not][] be a link. -+ +[not]: /url + Foo @@ -901,7 +911,9 @@ Cat & 1 \\ \hline Auto-links should not occur here:bar .<http://example.com/> -]]> ++or here: <http://example.com/> + @@ -950,7 +962,9 @@ Cat & 1 \\ \hline Subsequent blocks are indented to show that they belong to the footnote (as with list items). - }]]> ++ { <code> } + If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.