EPUB writer: fixed modified paths for raw HTML tags
(src, poster, etc.) This had not been updated for the new EPUB container layout, with a separate text/ subdirectory. Closes #4050. Closes #4055.
This commit is contained in:
parent
8cf9b23b45
commit
c6338fa883
1 changed files with 2 additions and 2 deletions
|
@ -942,8 +942,8 @@ transformTag tag@(TagOpen name attr)
|
|||
newsrc <- modifyMediaRef src
|
||||
newposter <- modifyMediaRef poster
|
||||
let attr' = filter (\(x,_) -> x /= "src" && x /= "poster") attr ++
|
||||
[("src", newsrc) | not (null newsrc)] ++
|
||||
[("poster", newposter) | not (null newposter)]
|
||||
[("src", "../" ++ newsrc) | not (null newsrc)] ++
|
||||
[("poster", "../" ++ newposter) | not (null newposter)]
|
||||
return $ TagOpen name attr'
|
||||
transformTag tag = return tag
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue