git.iko.soy/typeable/pandoc
on master help sign in
OpenDocument writer: don't convert 4 spaces to tab in verbatim block.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1281 788f1e2b-df1e-0410-8736-df70ead52e1b

commit8add1cf821c050ecb53089a92d1e37e523f75515 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateMon 9 Jun 2008, 21:07 (18 years ago) parent3337b46
1 file changed+1−5
Text/Pandoc/Writers/OpenDocument.hs+1−5
Text/Pandoc/Writers/OpenDocument.hs+1−5
@@ -155,11 +155,7 @@ withParagraphStyle _ _ [] = return empty
155155inPreformattedTags :: String -> State WriterState Doc
156156inPreformattedTags s = do
157157 n <- paraStyle "Preformatted_20_Text" []
158− return . inParagraphTagsWithStyle ("P" ++ show n) . hcat . rest $ s
159− where rest (' ':' ':' ':' ':xs) = selfClosingTag "text:tab" [] : rest xs
160− rest ( x:xs) = char x : rest xs
161− rest [] = []
162−
158+ return . inParagraphTagsWithStyle ("P" ++ show n) . text $ s
163159
164160orderedListToOpenDocument :: WriterOptions -> Int -> [[Block]] -> State WriterState Doc
165161orderedListToOpenDocument o pn bs =