Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cf6f76d

Browse files
QuLogicksunden
authored andcommitted
Fix extra line in Zenodo cache script
Every run of the script adds an extra newline at the end.
1 parent 0bddc7b commit cf6f76d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/cache_zenodo_svg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def _get_xdg_cache_dir():
125125
target = None
126126
if ln.strip() == ".. END OF AUTOGENERATED":
127127
target = footer
128-
target.append(ln)
128+
target.append(ln.rstrip())
129129

130130
with open(citing, "w") as fout:
131131
fout.write("\n".join(header))

0 commit comments

Comments
 (0)