From 8da3bfa7f3e82401a2eca01a2f396a9589b2a51c Mon Sep 17 00:00:00 2001 From: MatMasIt Date: Tue, 5 Oct 2021 08:59:10 +0200 Subject: [PATCH] Let's try a raw string --- gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen.py b/gen.py index 6f16d08..38fa3aa 100644 --- a/gen.py +++ b/gen.py @@ -37,6 +37,6 @@ for ypath in years: s = 0 list+="\n\dayH{"+r.strftime("%A")+"}{"+str(day)+"}{"+str(title)+"}\n" for i in range(s,len(fileContent)): - list+=fileContent[i]+'\\' + list+=fileContent[i]+r'\\' modelTex=open("model.tex","r").read() open("final.tex","w").write(modelTex.replace("REPLACETHIS",list))