add <br> to raw doc output

try to preserve a minimum the line return of the original format
This commit is contained in:
un-pogaz 2024-11-29 13:59:59 +01:00
parent 1684647366
commit 54ae263559

View File

@ -82,7 +82,7 @@ def safe_get_doc_html(ffml, func, fname, original_doc):
error_msg = build_error_msg(str(ex))
# return raw doc
return error_msg+'<br>'+doc.strip()
return error_msg+'<br>'+doc.strip().replace('\n', '<br>')
class DocViewer(Dialog):