标准化代码格式

This commit is contained in:
qingxu fu
2023-03-30 11:50:11 +08:00
parent 2bf30d8a1e
commit 6dd83fb1b4
2 changed files with 28 additions and 37 deletions

View File

@@ -106,8 +106,8 @@ def text_divide_paragraph(text):
# wtf input
lines = text.split("\n")
for i, line in enumerate(lines):
lines[i] = "<p>"+lines[i].replace(" ", "&nbsp;")+"</p>"
text = "\n".join(lines)
lines[i] = lines[i].replace(" ", "&nbsp;")
text = "</br>".join(lines)
return text
def markdown_convertion(txt):