fixed handling empty tags in TXT file
This commit is contained in:
@@ -124,6 +124,8 @@ class TagLine(str):
|
||||
filtered based on prefix or contained string.
|
||||
"""
|
||||
tagstr = self[len(self.prefix):].strip()
|
||||
if tagstr == '':
|
||||
return set() # no tags, only prefix
|
||||
separator = Tag.default_separator
|
||||
# look for alternative separators and use the first one found
|
||||
# -> we don't support different separators in the same TagLine
|
||||
|
||||
Reference in New Issue
Block a user