mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 15:44:59 +08:00
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
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user