summaryrefslogtreecommitdiff
path: root/pandoc.hs
diff options
context:
space:
mode:
authorMarLinn <MarLinn@users.noreply.github.com>2015-07-23 09:06:14 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2015-07-23 15:37:01 -0700
commitf06809355527394f3c32c0e46e6f9cb48786b668 (patch)
tree32b9489c146c003689cec8995ab8ac2d96a0d3c4 /pandoc.hs
parent8390d935d8af944690736b7f2da5f2a58d97351b (diff)
Added odt reader
Fully implemented features: * Paragraphs * Headers * Basic styling * Unordered lists * Ordered lists * External Links * Internal Links * Footnotes, Endnotes * Blockquotes Partly implemented features: * Citations Very basic, but pandoc can't do much more * Tables No headers, no sizing, limited styling
Diffstat (limited to 'pandoc.hs')
-rw-r--r--pandoc.hs4
1 files changed, 1 insertions, 3 deletions
diff --git a/pandoc.hs b/pandoc.hs
index 5d201ce36..fb9b9abbf 100644
--- a/pandoc.hs
+++ b/pandoc.hs
@@ -954,7 +954,7 @@ defaultReaderName fallback (x:xs) =
".docx" -> "docx"
".t2t" -> "t2t"
".epub" -> "epub"
- ".odt" -> "odt" -- so we get an "unknown reader" error
+ ".odt" -> "odt"
".pdf" -> "pdf" -- so we get an "unknown reader" error
".doc" -> "doc" -- so we get an "unknown reader" error
_ -> defaultReaderName fallback xs
@@ -1180,8 +1180,6 @@ main = do
Right r -> return r
Left e -> err 7 e'
where e' = case readerName' of
- "odt" -> e ++
- "\nPandoc can convert to ODT, but not from ODT.\nTry using LibreOffice to export as HTML, and convert that with pandoc."
"pdf" -> e ++
"\nPandoc can convert to PDF, but not from PDF."
"doc" -> e ++