Make some improvements and update tests

This commit is contained in:
Veronica Berglyd Olsen
2023-11-06 22:42:02 +01:00
parent f17e1f38de
commit ccd3122633
3 changed files with 33 additions and 23 deletions
+1 -2
View File
@@ -579,8 +579,7 @@ class GuiProjectTree(QTreeWidget):
if rHandle:
tHandle = SHARED.project.newFile(tag, rHandle)
if tHandle:
text = f"# {tag}\n\n@tag: {tag}\n\n"
SHARED.project.writeNewFile(tHandle, 1, False, text)
SHARED.project.writeNewFile(tHandle, 1, False, f"@tag: {tag}\n\n")
self.revealNewTreeItem(tHandle, wordCount=True)
return True
return False