diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2007-07-10 06:18:23 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2007-07-10 06:18:23 +0000 |
commit | aa1c8ac49631f2dafc25aa1d9938a37a8beb4bfa (patch) | |
tree | 7b9d6e6902f38b7054adcbe7886717871ac1ade6 /src | |
parent | 17caba2ffcfad745ce67793db19a611668ad69df (diff) | |
download | pandoc-aa1c8ac49631f2dafc25aa1d9938a37a8beb4bfa.tar.gz |
Recognize output filenames with any single-digit extension as man
format.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@668 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'src')
-rw-r--r-- | src/Main.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Main.hs b/src/Main.hs index a5c64d7d0..dcfad2723 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -364,7 +364,7 @@ defaultWriterName x = Just ["db"] -> "docbook" Just ["xml"] -> "docbook" Just ["sgml"] -> "docbook" - Just ["1"] -> "man" + Just [[x]] | x `elem` ['1'..'9'] -> "man" Just _ -> "html" main = do |