diff --git a/src/python/utils.py b/src/python/utils.py index 1222e1c4..3ae437df 100644 --- a/src/python/utils.py +++ b/src/python/utils.py @@ -43,4 +43,7 @@ def guess_mime(file: IO) -> Optional[str]: def plain2html(text: str) -> str: - return "
%s" % html.escape(text) + return html.escape(text)\ + .replace(" ", " ")\ + .replace("\n", "