Spaces:
Running
Running
Update main.py
Browse files
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)
|
|
|
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 |
|