🐛 use unix line terminators in csv

This commit is contained in:
neingeist 2026-04-08 22:15:53 +02:00
parent ee6409a40d
commit 1aea650764
2 changed files with 16 additions and 16 deletions

View file

@ -86,8 +86,8 @@ def main():
# filter "Frühstück" # filter "Frühstück"
recipes = [r for r in recipes if any(k["name"] == "Fr\u00fchst\u00fcck" for k in r["keywords"])] recipes = [r for r in recipes if any(k["name"] == "Fr\u00fchst\u00fcck" for k in r["keywords"])]
with open("fruehstueck.csv", "w") as f: with open("fruehstueck.csv", "w", newline="") as f:
fwriter = csv.writer(f, delimiter=';', quotechar='"', quoting=csv.QUOTE_MINIMAL) fwriter = csv.writer(f, delimiter=';', quotechar='"', quoting=csv.QUOTE_MINIMAL, lineterminator="\n")
fwriter.writerow(["title", "url", "isVegan", "ingredients", "comment"]) fwriter.writerow(["title", "url", "isVegan", "ingredients", "comment"])
for recipe in recipes: for recipe in recipes: