修改 网页生成讲义 的一处bug

This commit is contained in:
wangweiye7840 2024-06-17 11:26:50 +08:00
parent f9023b60a0
commit 35963f39ca
1 changed files with 2 additions and 2 deletions

View File

@ -2558,8 +2558,8 @@ def GenerateSingleLessonNotefromMariaDB(cursor,id,structuredict,notesdict,templa
# if not structure[sectionkey]["spaceflag"] or answered:
# content = re.sub(r"\\vspace[\*]?\{[\S]*\}","\n",content)
output += content + "\n\n"
if notesdict[id]["remark"] != "":
output += f"\n\n\\newpage\n\n\\section{{备注}}\n\n{notesdict[id]['remark']}\n\n"
if notesdict[id]["remarks"] != "":
output += f"\n\n\\newpage\n\n\\section{{备注}}\n\n{notesdict[id]['remarks']}\n\n"
latex_raw = ReadTextFile(templatepath)
latex_raw = latex_raw.replace(r"学号\blank{50} \ 姓名\blank{80}","上海市控江中学") #替换掉模板中的姓名学号