Spaces:
Sleeping
Sleeping
Update dl.py
Browse files
dl.py
CHANGED
@@ -123,7 +123,7 @@ def show_f_cont(repo,name,file,token):
|
|
123 |
html_text = '<html>\n<body>\n'
|
124 |
|
125 |
#for line in text.split('\n'):
|
126 |
-
html_text += f'<span>{text}</span>\n'
|
127 |
|
128 |
html_text += '</body>\n</html>'
|
129 |
return(html_text,r.text)
|
|
|
123 |
html_text = '<html>\n<body>\n'
|
124 |
|
125 |
#for line in text.split('\n'):
|
126 |
+
html_text += f'<span style="white-space: pre-line">{text}</span>\n'
|
127 |
|
128 |
html_text += '</body>\n</html>'
|
129 |
return(html_text,r.text)
|