git.iko.soy/typeable/pandoc
on master help sign in
RST writer: Wrap line blocks with spaces before continuations.

Improves on fix to #1656.

commit08ac33815b1a744ccadd99792d942355f17a62e6 authorJohn MacFarlane <jgm@berkeley.edu> dateTue 30 Sep 2014, 09:25 (12 years ago) parent29e1c95
1 file changed+1−1
src/Text/Pandoc/Writers/RST.hs+1−1
src/Text/Pandoc/Writers/RST.hs+1−1
@@ -177,7 +177,7 @@ blockToRST (Para [Image txt (src,'f':'i':'g':':':tit)]) = do
177177blockToRST (Para inlines)
178178 | LineBreak `elem` inlines = do -- use line block if LineBreaks
179179 lns <- mapM inlineListToRST $ splitBy (==LineBreak) inlines
180− return $ (vcat $ map (nowrap . (text "| " <>)) lns) <> blankline
180+ return $ (vcat $ map (hang 2 (text "| ")) lns) <> blankline
181181 | otherwise = do
182182 contents <- inlineListToRST inlines
183183 return $ contents <> blankline