diff options
author | MarLinn <MarLinn@users.noreply.github.com> | 2015-07-23 09:06:14 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-07-23 15:37:01 -0700 |
commit | f06809355527394f3c32c0e46e6f9cb48786b668 (patch) | |
tree | 32b9489c146c003689cec8995ab8ac2d96a0d3c4 /pandoc.hs | |
parent | 8390d935d8af944690736b7f2da5f2a58d97351b (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.hs | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 ++ |