git.iko.soy/typeable/pandoc
on master help sign in
Small fix to indentation of code blocks inside defn lists.

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

commitd07e5825d38053bfc3e856b968ebb0f0c7c121cc authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateMon 9 Jun 2008, 21:15 (18 years ago) parent94e2d37
1 file changed+1−1
Text/Pandoc/Writers/OpenDocument.hs+1−1
Text/Pandoc/Writers/OpenDocument.hs+1−1
@@ -418,7 +418,7 @@ paraStyle parent attrs = do
418418 let styleAttr = [ ("style:name" , "P" ++ show pn)
419419 , ("style:family" , "paragraph" )
420420 , ("style:parent-style-name", parent )]
421− indentVal = if b then "0.5in" else show i ++ "in"
421+ indentVal = flip (++) "in" . show $ if b then (max 0.5 i) else i
422422 indent = if i == 0 && not b
423423 then empty
424424 else selfClosingTag "style:paragraph-properties"