Split tags on spaces, not commas

This commit is contained in:
Erez Volk 2020-01-02 21:05:56 +02:00
parent b11df5c733
commit e36f019ec2
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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()