aboutsummaryrefslogtreecommitdiffhomepage
path: root/make_completions.py
diff options
context:
space:
mode:
authorGravatar liljencrantz <liljencrantz@gmail.com>2007-10-29 09:31:10 +1000
committerGravatar liljencrantz <liljencrantz@gmail.com>2007-10-29 09:31:10 +1000
commit374fc09af0af8623c4a6cd2f4c007a4a6d47a474 (patch)
treef1fa28f603ed266e990b4492c2246a5dad36d92d /make_completions.py
parent54b1986986d1332e11bfd42074b9a6a73b9db7e5 (diff)
Minor tweaks for man page parser.
darcs-hash:20071028233110-75c98-7d900290fdb313cb8ce2194a2d452cd9d4c8dc13.gz
Diffstat (limited to 'make_completions.py')
-rwxr-xr-xmake_completions.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/make_completions.py b/make_completions.py
index 5830bfea..215999cd 100755
--- a/make_completions.py
+++ b/make_completions.py
@@ -6,10 +6,10 @@ import re
# Regexes for performing cleanup
-cl = {re.compile(r"[ \n\t\r]+", re.MULTILINE):" ",
- re.compile(r"^[ \n\t\r]"):"",
- re.compile(r"[ \n\t\r]$"):"",
- re.compile(r"-[ \t]*\n[ \t\r]+" ):""}
+cl = { re.compile(r"-[ \t]*\n[ \t\r]+" ):"",
+ re.compile(r"[ \n\t\r]+", re.MULTILINE):" ",
+ re.compile(r"^[ \n\t\r]"):"",
+ re.compile(r"[ \n\t\r]$"):"" }
def header(cmd):
print '''#
@@ -150,6 +150,9 @@ for c in man:
else:
desc += c
+
+ else:
+ print "Unknown mode", mode
pc = c