mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
add <br> to raw doc output
try to preserve a minimum the line return of the original format
This commit is contained in:
parent
1684647366
commit
54ae263559
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user