diff options
author | Hubert Plociniczak <hubert.plociniczak@gmail.com> | 2016-11-11 13:09:49 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-01-25 17:07:39 +0100 |
commit | a6b469c02b3c21cfc1b5169ea3e75b7388f55691 (patch) | |
tree | f72130a5a83d27aecf67a5194039705235326191 /src/Text/Pandoc/Writers/AsciiDoc.hs | |
parent | 30b3412857fc604656aac53d57730ad2442a3599 (diff) | |
download | pandoc-a6b469c02b3c21cfc1b5169ea3e75b7388f55691.tar.gz |
Adds support for pagebreaks (when it makes sense)
Update all writers to take into account page breaks.
A straightforwad, far from complete, implementation of page
breaks in selected writers.
Readers will have to follow in the future as well.
Diffstat (limited to 'src/Text/Pandoc/Writers/AsciiDoc.hs')
-rw-r--r-- | src/Text/Pandoc/Writers/AsciiDoc.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/AsciiDoc.hs b/src/Text/Pandoc/Writers/AsciiDoc.hs index e9d3dccf1..88fab171f 100644 --- a/src/Text/Pandoc/Writers/AsciiDoc.hs +++ b/src/Text/Pandoc/Writers/AsciiDoc.hs @@ -411,7 +411,8 @@ inlineToAsciiDoc _ (Math DisplayMath str) = inlineToAsciiDoc _ (RawInline f s) | f == "asciidoc" = return $ text s | otherwise = return empty -inlineToAsciiDoc _ (LineBreak) = return $ " +" <> cr +inlineToAsciiDoc _ LineBreak = return $ " +" <> cr +inlineToAsciiDoc _ PageBreak = return empty inlineToAsciiDoc _ Space = return space inlineToAsciiDoc opts SoftBreak = case writerWrapText opts of |