diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-12-07 15:46:46 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-12-07 17:37:27 +0100 |
commit | b0733190b06b3684f0994809b17543033c5c00ca (patch) | |
tree | 45b92b6c0fe4e4daaca506118ee7cef2a116b7dc /pandoc.hs | |
parent | a197341252a6149bb1a3234ffcca915fb4ed1498 (diff) |
Fixed bash completion for filenames with spaces.
Closes #2749.
Diffstat (limited to 'pandoc.hs')
-rw-r--r-- | pandoc.hs | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -478,7 +478,7 @@ options = case safeRead ("Wrap" ++ uppercaseFirstLetter arg) of Just o -> return opt { optWrapText = o } Nothing -> err 77 "--wrap must be auto, none, or preserve") - "[auto|none|preserve]") + "auto|none|preserve") "" -- "Option for wrapping text in output" , Option "" ["columns"] @@ -609,7 +609,7 @@ options = Just tlDiv -> return opt { optTopLevelDivision = tlDiv } _ -> err 76 ("Top-level division must be " ++ "section, chapter, part, or default")) - "[section|chapter|part]") + "section|chapter|part") "" -- "Use top-level division type in LaTeX, ConTeXt, DocBook" , Option "N" ["number-sections"] @@ -912,6 +912,7 @@ options = UTF8.hPutStrLn stdout $ printf tpl allopts (unwords (map fst readers)) (unwords (map fst writers)) + (unwords $ map fst highlightingStyles) ddir exitSuccess )) "" -- "Print bash completion script" |