mirror of
https://github.com/jgm/pandoc.git
synced 2026-10-03 04:37:45 +00:00
ODT writer: further refinement to #3524.
Don't alter the link if the path is empty.
This commit is contained in:
@@ -77,8 +77,9 @@ fixInternalLinks = walk go
|
||||
go x = x
|
||||
fixRel uri =
|
||||
case parseRelativeReference (T.unpack uri) of
|
||||
Nothing -> uri
|
||||
Just u -> tshow $ u{ uriPath = "../" <> uriPath u }
|
||||
Just u
|
||||
| not (null (uriPath u)) -> tshow $ u{ uriPath = "../" <> uriPath u }
|
||||
_ -> uri
|
||||
|
||||
-- | Produce an ODT file from a Pandoc document.
|
||||
pandocToODT :: PandocMonad m
|
||||
|
||||
Reference in New Issue
Block a user