@@ -105,7 +105,7 @@ def write_entry(setting: str, file: str):
105105 lines.insert(fm_end, ANCHOR_KEY + f'"{setting}"' + '\n') # insert the setting right before the end of front matter
106106 f.seek(0) # go to beginning of file
107107 f.writelines(lines) # overwrite with new contents
108− f.truncate() # idk why but necessary for bug-free behviour
108+ f.truncate() # idk why but necessary for bug-free behviour (otherwise it adds excess newlines and stuff)
109109
110110
111111