修改 网页生成讲义 的一处bug
This commit is contained in:
parent
f9023b60a0
commit
35963f39ca
|
|
@ -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}","上海市控江中学") #替换掉模板中的姓名学号
|
||||
|
|
|
|||
Reference in New Issue