FB2 writer: properly handle cover-image containing spaces.
Closes #6391.
This commit is contained in:
parent
7902ac5256
commit
4b5d2aa485
1 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ import Text.Pandoc.Definition
|
|||
import Text.Pandoc.Logging
|
||||
import Text.Pandoc.Options (HTMLMathMethod (..), WriterOptions (..), def)
|
||||
import Text.Pandoc.Shared (capitalize, isURI, orderedListMarkers,
|
||||
makeSections, tshow)
|
||||
makeSections, tshow, stringify)
|
||||
import Text.Pandoc.Writers.Shared (lookupMetaString, toLegacyTable)
|
||||
|
||||
-- | Data to be written at the end of the document:
|
||||
|
@ -116,7 +116,7 @@ description meta' = do
|
|||
im <- insertImage InlineImage img
|
||||
return [el "coverpage" im]
|
||||
coverpage <- case lookupMeta "cover-image" meta' of
|
||||
Just (MetaInlines [Str s]) -> coverimage s
|
||||
Just (MetaInlines ils) -> coverimage (stringify ils)
|
||||
Just (MetaString s) -> coverimage s
|
||||
_ -> return []
|
||||
return $ el "description"
|
||||
|
|
Loading…
Add table
Reference in a new issue