diff --git a/src/Text/Pandoc/Writers/Textile.hs b/src/Text/Pandoc/Writers/Textile.hs index f58d49483..0987e1314 100644 --- a/src/Text/Pandoc/Writers/Textile.hs +++ b/src/Text/Pandoc/Writers/Textile.hs @@ -126,7 +126,7 @@ blockToTextile _ (CodeBlock (_,classes,_) str) | any (all isSpace) (lines str) = else " class=\"" ++ unwords classes ++ "\"" blockToTextile _ (CodeBlock (_,classes,_) str) = - return $ "bc" ++ classes' ++ ". " ++ escapeStringForXML str ++ "\n" + return $ "bc" ++ classes' ++ ". " ++ str ++ "\n" where classes' = if null classes then "" else "(" ++ unwords classes ++ ")" diff --git a/tests/writer.textile b/tests/writer.textile index 2d4bff717..f3513884a 100644 --- a/tests/writer.textile +++ b/tests/writer.textile @@ -50,7 +50,7 @@ bq. This is a block quote. It is pretty short. Code in a block quote: bc. sub status { - print "working"; + print "working"; } A list: @@ -366,13 +366,13 @@ foo This should be a code block, though: -bc. <div> +bc.
}
If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.