Skip to content

Commit

Permalink
Minor tweaks for man page parser.
Browse files Browse the repository at this point in the history
darcs-hash:20071028233110-75c98-7d900290fdb313cb8ce2194a2d452cd9d4c8dc13.gz
  • Loading branch information
liljencrantz committed Oct 28, 2007
1 parent 54b1986 commit 374fc09
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions make_completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

# 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 '''#
Expand Down Expand Up @@ -150,6 +150,9 @@ def print_completion( cmd, switch_arr, arg, desc ):

else:
desc += c

else:
print "Unknown mode", mode

pc = c

0 comments on commit 374fc09

Please sign in to comment.