aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-11-26 09:28:05 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2019-11-26 09:28:05 -0800
commitb4f434ae0d93b66c61515a4903bfe2ba794cce9b (patch)
treee5f9531c81c92437d20002a2ab61405012fa2ce1 /src
parent421ae44cdfb5d1049246d61cabf647d6056eb554 (diff)
downloadpandoc-b4f434ae0d93b66c61515a4903bfe2ba794cce9b.tar.gz
Add pdf to list of output formats (`--list-output-formats`).
Closes #5938.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/App/CommandLineOptions.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/App/CommandLineOptions.hs b/src/Text/Pandoc/App/CommandLineOptions.hs
index 7d3b935ef..32fb04663 100644
--- a/src/Text/Pandoc/App/CommandLineOptions.hs
+++ b/src/Text/Pandoc/App/CommandLineOptions.hs
@@ -974,7 +974,8 @@ readersNames :: [String]
readersNames = sort (map (T.unpack . fst) (readers :: [(Text, Reader PandocIO)]))
writersNames :: [String]
-writersNames = sort (map (T.unpack . fst) (writers :: [(Text, Writer PandocIO)]))
+writersNames = sort
+ ("pdf" : map (T.unpack . fst) (writers :: [(Text, Writer PandocIO)]))
splitField :: String -> (String, String)
splitField s =