binary-husky commited on
Commit
8849095
2 Parent(s): 8f60e96 33adfc3

Merge pull request #87 from Okabe-Rintarou-0/fix-markdown-display

Browse files
Files changed (1) hide show
  1. toolbox.py +2 -2
toolbox.py CHANGED
@@ -107,8 +107,8 @@ def text_divide_paragraph(text):
107
  # wtf input
108
  lines = text.split("\n")
109
  for i, line in enumerate(lines):
110
- if i!=0: lines[i] = "<p>"+lines[i].replace(" ", "&nbsp;")+"</p>"
111
- text = "".join(lines)
112
  return text
113
 
114
  def markdown_convertion(txt):
 
107
  # wtf input
108
  lines = text.split("\n")
109
  for i, line in enumerate(lines):
110
+ lines[i] = "<p>"+lines[i].replace(" ", "&nbsp;")+"</p>"
111
+ text = "\n".join(lines)
112
  return text
113
 
114
  def markdown_convertion(txt):