Split tags on spaces, not commas
This commit is contained in:
parent
b11df5c733
commit
e36f019ec2
@ -275,7 +275,7 @@ content in the text file to the correct fields."""
|
||||
return [intTime(), self.col.usn(), n.fieldsStr, tags, id, n.fieldsStr, tags]
|
||||
elif self.tagModified:
|
||||
tags = self.col.db.scalar("select tags from notes where id = ?", id)
|
||||
tagList = self.col.tags.split(tags) + self.tagModified.split(",")
|
||||
tagList = self.col.tags.split(tags) + self.tagModified.split()
|
||||
tagList = self.col.tags.canonify(tagList)
|
||||
self.col.tags.register(tagList)
|
||||
tags = self.col.tags.join(tagList)
|
||||
|
@ -249,7 +249,7 @@ def test_tsv_tag_multiple_tags():
|
||||
tf.flush()
|
||||
i = TextImporter(deck, tf.name)
|
||||
i.initMapping()
|
||||
i.tagModified = "five,six"
|
||||
i.tagModified = "five six"
|
||||
i.run()
|
||||
|
||||
n.load()
|
||||
|
Loading…
Reference in New Issue
Block a user