on master help sign in
Update comment
commite99391214fae0cb4031188d2f948082c5e1cf341 authorYaseen <yaseen.nvt@gmail.com> dateThu 21 Jan 2021, 18:18 (6 years ago) parent46817f7
1 file changed+1−1
anchors.py+1−1
anchors.py+1−1
@@ -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