git.iko.soy/typeable/pandoc
on master help sign in
Don't wrap lines in rST line blocks.

Closes #1656. Fixing pandoc to wrap the lines but insert spaces would be much more complicated. This at least makes the output semantically correct.

commit29e1c9529f4b9f6cd02f89a477a1bc57943e6f26 authorJohn MacFarlane <jgm@berkeley.edu> dateMon 29 Sep 2014, 21:48 (12 years ago) parent067f2e6
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 (text "| " <>) lns) <> blankline
180+ return $ (vcat $ map (nowrap . (text "| " <>)) lns) <> blankline
181181 | otherwise = do
182182 contents <- inlineListToRST inlines
183183 return $ contents <> blankline