git.iko.soy/typeable/pandoc
on master help sign in
More refinements to --version output.
76315d9John MacFarlane
src/Text/Pandoc/App/CommandLineOptions.hs+4−3
@@ -914,7 +914,7 @@ options =
914 defaultDatadirs <- defaultUserDataDirs
914 defaultDatadirs <- defaultUserDataDirs
915 UTF8.hPutStrLn stdout (prg ++ " " ++ T.unpack pandocVersion ++
915 UTF8.hPutStrLn stdout (prg ++ " " ++ T.unpack pandocVersion ++
916 compileInfo ++
916 compileInfo ++
917− "\nDefault user data directory:\n " ++
917+ "\nUser data directory: " ++
918 intercalate " or " defaultDatadirs ++
918 intercalate " or " defaultDatadirs ++
919 ('\n':copyrightMessage))
919 ('\n':copyrightMessage))
920 exitSuccess ))
920 exitSuccess ))
@@ -951,9 +951,10 @@ copyrightMessage = intercalate "\n" [
951
951
952compileInfo :: String
952compileInfo :: String
953compileInfo =
953compileInfo =
954− "\nCompiled with:\n pandoc-types " ++ VERSION_pandoc_types ++
954+ "\nCompiled with pandoc-types " ++ VERSION_pandoc_types ++
955 ", texmath " ++ VERSION_texmath ++ ", skylighting " ++
955 ", texmath " ++ VERSION_texmath ++ ", skylighting " ++
956− VERSION_skylighting ++ ", citeproc " ++ VERSION_citeproc
956+ VERSION_skylighting ++ ",\nciteproc " ++ VERSION_citeproc ++
957+ ", ipynb " ++ VERSION_ipynb
957
958
958handleUnrecognizedOption :: String -> [String] -> [String]
959handleUnrecognizedOption :: String -> [String] -> [String]
959handleUnrecognizedOption "--smart" =
960handleUnrecognizedOption "--smart" =