nhathuy07 commited on
Commit
f2607ba
·
verified ·
1 Parent(s): cf43ada

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -1
main.py CHANGED
@@ -210,7 +210,8 @@ async def __parse_paragraphs (content: str, batching: bool = False):
210
  _p = ""
211
  _rp = content
212
 
213
- _rp = await __convert2md(_rp).replace('\r','')
 
214
  # remove empty lines and headers
215
  _p = [_x.strip() for _x in _rp.split('\n\n') if len(_x)!=0 and _x.strip().count('#') != len(_x)]
216
 
 
210
  _p = ""
211
  _rp = content
212
 
213
+ _rp = await __convert2md(_rp)
214
+ _rp = _rp.replace('\r','')
215
  # remove empty lines and headers
216
  _p = [_x.strip() for _x in _rp.split('\n\n') if len(_x)!=0 and _x.strip().count('#') != len(_x)]
217