Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jwiegley committed Dec 2, 2013
1 parent 646b753 commit 7a34ef9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion org2tc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ for line in fd:
headings[depth] = match.group(2)

depth = 0
match = re.search("^(\*+)\s*(([A-Z]{3}[A-Z]+)(\s+\[#[ABC]\])?)?\s*(.+)", line)
match = re.search("^(\*+)\s*(([A-Z]{3}[A-Z]+)(\s+\[#[ABC]\])?)?\s*(.+)",
line)
if match:
depth = len(match.group(1))
todo_keyword = match.group(3)
Expand Down Expand Up @@ -62,6 +63,9 @@ for line in fd:
clock_out = match.group(3) # optional
if clock_out:
clock_out = parse_org_time(clock_out)
else:
#clock_out = time.localtime()
clock_out = None

events.append((clock_in, clock_out, todo_keyword, last_heading))

Expand Down

0 comments on commit 7a34ef9

Please sign in to comment.