diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-12-12 00:13:58 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-12-12 00:13:58 -0800 |
commit | 1b0e0998fafcfad1ad2c83aa435a8f2a32faa2cd (patch) | |
tree | 498dd47e124f21d31893c95b4f7e7c0aafc9b689 /src/Text/Pandoc/Writers | |
parent | b747243e8da58f0692f7d9de8c3dd3e5e02f8a9b (diff) | |
download | pandoc-1b0e0998fafcfad1ad2c83aa435a8f2a32faa2cd.tar.gz |
FB2 writer: support SoftBreak.
This was omitted earlier.
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r-- | src/Text/Pandoc/Writers/FB2.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/FB2.hs b/src/Text/Pandoc/Writers/FB2.hs index a1658eb1a..80296e111 100644 --- a/src/Text/Pandoc/Writers/FB2.hs +++ b/src/Text/Pandoc/Writers/FB2.hs @@ -27,7 +27,7 @@ FictionBook is an XML-based e-book format. For more information see: -} module Text.Pandoc.Writers.FB2 (writeFB2) where -import Control.Monad.State (StateT, evalStateT, get, gets, modify) +import Control.Monad.State (StateT, evalStateT, get, modify) import Control.Monad.State (liftM, liftM2, liftIO) import Data.ByteString.Base64 (encode) import Data.Char (toLower, isSpace, isAscii, isControl) @@ -570,6 +570,7 @@ plain (Quoted _ ss) = concat (map plain ss) plain (Cite _ ss) = concat (map plain ss) -- FIXME plain (Code _ s) = s plain Space = " " +plain SoftBreak = " " plain LineBreak = "\n" plain (Math _ s) = s plain (RawInline _ s) = s |