Allow variable whitespace after Begin/End designation

fix-whitespace-problem
Trey Blancher 2 years ago
parent 2dfaf39cf9
commit ac2a397c19
  1. 4
      timetracker.py

@ -18,8 +18,8 @@ misc = {} # Data structure for storing miscellaneous timecards
empty = re.compile("^\s*$") # regex for finding empty lines (and skipping them)
comment = re.compile("^\s*#") # regex for finding empty lines (and skipping them)
delim = re.compile(":\s{2}") # regex for splitting timestamp entry
begin = re.compile("^Begin\s(?P<action>.*)\s*$")
end = re.compile("^End\s{3}(?P<action>.*)\s*$")
begin = re.compile("^Begin\s+(?P<action>.*)\s*$")
end = re.compile("^End\s+(?P<action>.*)\s*$")
#case = re.compile("^(PDROP|CHG)-?\d+")
for line in fileinput.input():

Loading…
Cancel
Save