Let's try a raw string

This commit is contained in:
Mattia Mascarello 2021-10-05 08:59:10 +02:00 committed by GitHub
parent 2e2f85b239
commit 8da3bfa7f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
gen.py
View File

@ -37,6 +37,6 @@ for ypath in years:
s = 0 s = 0
list+="\n\dayH{"+r.strftime("%A")+"}{"+str(day)+"}{"+str(title)+"}\n" list+="\n\dayH{"+r.strftime("%A")+"}{"+str(day)+"}{"+str(title)+"}\n"
for i in range(s,len(fileContent)): for i in range(s,len(fileContent)):
list+=fileContent[i]+'\\' list+=fileContent[i]+r'\\'
modelTex=open("model.tex","r").read() modelTex=open("model.tex","r").read()
open("final.tex","w").write(modelTex.replace("REPLACETHIS",list)) open("final.tex","w").write(modelTex.replace("REPLACETHIS",list))