There should be a whitespace character in front of a tag. Fixes issue #237.

This commit is contained in:
Matt Hoffman 2014-07-22 22:14:26 -04:00
parent f8a337f66e
commit d5142a0a0a
4 changed files with 25 additions and 1 deletions

2
jrnl/Entry.py Normal file → Executable file
View file

@ -18,7 +18,7 @@ class Entry:
def parse_tags(self):
fulltext = " ".join([self.title, self.body]).lower()
tags = re.findall(r'(?u)([{tags}][-+*#/\w]+)'.format(tags=self.journal.config['tagsymbols']), fulltext, re.UNICODE)
tags = re.findall(r'(?u)\s([{tags}][-+*#/\w]+)'.format(tags=self.journal.config['tagsymbols']), fulltext, re.UNICODE)
self.tags = tags
return set(tags)