diff options
author | John MacFarlane <jgm@berkeley.edu> | 2013-11-16 22:49:15 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2013-11-16 22:49:15 -0800 |
commit | 9b0378b939f46183fc152b1a49a69f3007de295a (patch) | |
tree | 6375c7d6c5f3835615e38d28ded96690faba4f3f /src/Text/Pandoc/Writers | |
parent | 892ba2dd163cbba598cbd86814a594008aae9f27 (diff) | |
download | pandoc-9b0378b939f46183fc152b1a49a69f3007de295a.tar.gz |
OpenDocument: Skip raw HTML.
Previously it was erroneously included as verbatim text.
Closes #1035.
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r-- | src/Text/Pandoc/Writers/OpenDocument.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Writers/OpenDocument.hs b/src/Text/Pandoc/Writers/OpenDocument.hs index b38d250aa..565f5f869 100644 --- a/src/Text/Pandoc/Writers/OpenDocument.hs +++ b/src/Text/Pandoc/Writers/OpenDocument.hs @@ -376,8 +376,8 @@ inlineToOpenDocument o ils | Code _ s <- ils = withTextStyle Pre $ inTextStyle $ preformatted s | Math t s <- ils = inlinesToOpenDocument o (readTeXMath' t s) | Cite _ l <- ils = inlinesToOpenDocument o l - | RawInline f s <- ils = if f == "opendocument" || f == "html" - then withTextStyle Pre $ inTextStyle $ preformatted s + | RawInline f s <- ils = if f == "opendocument" + then return $ preformatted s else return empty | Link l (s,t) <- ils = mkLink s t <$> inlinesToOpenDocument o l | Image _ (s,t) <- ils = return $ mkImg s t |