Commit 04e200e2 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Also set new priority in source string when no priority is present.

parent c8419a5a
......@@ -107,7 +107,7 @@ class TodoBase(object):
"""
if re.match('^[A-Z]$', p_priority):
self.fields['priority'] = p_priority
self.src = re.sub(r'^\([A-Z]\)', '(' + p_priority + ')', self.src)
self.src = re.sub(r'^(\([A-Z]\) )?', '(' + p_priority + ') ', self.src)
def priority(self):
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment