This commit is contained in:
Kovid Goyal 2023-05-09 10:29:12 +05:30
parent 49ff2bde2d
commit dcd5978707
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -99,7 +99,7 @@ def copy_all(text_browser):
simplified_html = etree.tostring(root, encoding='unicode')
txt = html2text(simplified_html, single_line_break=True).strip()
if iswindows:
txt = '\r\n'.join(txt.splitlines())
txt = os.linesep.join(txt.splitlines())
# print(simplified_html)
# print(txt)
md.setText(txt)