git.iko.soy/typeable/pandoc
on master help sign in
FB2 writer: support SoftBreak.

This was omitted earlier.

commit1b0e0998fafcfad1ad2c83aa435a8f2a32faa2cd authorJohn MacFarlane <jgm@berkeley.edu> dateSat 12 Dec 2015, 00:13 (11 years ago) parentb747243
1 file changed+2−1
src/Text/Pandoc/Writers/FB2.hs+2−1
src/Text/Pandoc/Writers/FB2.hs+2−1
@@ -27,7 +27,7 @@ FictionBook is an XML-based e-book format. For more information see:
2727-}
2828module Text.Pandoc.Writers.FB2 (writeFB2) where
2929
30−import Control.Monad.State (StateT, evalStateT, get, gets, modify)
30+import Control.Monad.State (StateT, evalStateT, get, modify)
3131import Control.Monad.State (liftM, liftM2, liftIO)
3232import Data.ByteString.Base64 (encode)
3333import Data.Char (toLower, isSpace, isAscii, isControl)
@@ -570,6 +570,7 @@ plain (Quoted _ ss) = concat (map plain ss)
570570plain (Cite _ ss) = concat (map plain ss) -- FIXME
571571plain (Code _ s) = s
572572plain Space = " "
573+plain SoftBreak = " "
573574plain LineBreak = "\n"
574575plain (Math _ s) = s
575576plain (RawInline _ s) = s