git.iko.soy/typeable/pandoc
on master help sign in
Docx Writer: Use FirstParagraph style at beginning.

Before we had used `FirstParagraph` style after Headings, BlockQuotes, and other blocks a user might not want an indentation after. We hadn't actually used it for the first paragraph -- i.e. the opening of the body. This makes sure the first body paragraph gets that style.

commit25ef68d266c437c45a2331d3473673b508cc305f authorJesse Rosenthal <jrosenthal@jhu.edu> dateTue 10 Feb 2015, 21:05 (12 years ago) parentd623a5c
1 file changed+1−1
src/Text/Pandoc/Writers/Docx.hs+1−1
src/Text/Pandoc/Writers/Docx.hs+1−1
@@ -614,7 +614,7 @@ writeOpenXML opts (Pandoc meta blocks) = do
614614 convertSpace (Str x : Str y : xs) = Str (x ++ y) : xs
615615 convertSpace xs = xs
616616 let blocks' = bottomUp convertSpace blocks
617− doc' <- blocksToOpenXML opts blocks'
617+ doc' <- (setFirstPara >> blocksToOpenXML opts blocks')
618618 notes' <- reverse `fmap` gets stFootnotes
619619 let meta' = title ++ subtitle ++ authors ++ date ++ abstract
620620 return (meta' ++ doc', notes')