diff --git a/kallithea/lib/helpers.py b/kallithea/lib/helpers.py
--- a/kallithea/lib/helpers.py
+++ b/kallithea/lib/helpers.py
@@ -1302,6 +1302,7 @@ def urlify_text(s, repo_name=None, link_
if repo_name is not None:
s = urlify_issues(s, repo_name, link_)
s = MENTIONS_REGEX.sub(_mentions_replace, s)
+ s = s.replace('\r\n', ' ').replace('\n', ' ')
return literal(s)
diff --git a/kallithea/tests/functional/test_files.py b/kallithea/tests/functional/test_files.py
--- a/kallithea/tests/functional/test_files.py
+++ b/kallithea/tests/functional/test_files.py
@@ -99,11 +99,11 @@ class TestFilesController(TestController
revision='8911406ad776fdd3d0b9932a2e89677e57405a48',
f_path='vcs/nodes.py'))
- response.mustcontain("""
Partially implemented #16. filecontent/commit message/author/node name are safe_unicode now.
-In addition some other __str__ are unicode as well
-Added test for unicode
-Improved test to clone into uniq repository.
-removed extra unicode conversion in diff.
+ response.mustcontain("""
Partially implemented #16. filecontent/commit message/author/node name are safe_unicode now. """
+"""In addition some other __str__ are unicode as well """
+"""Added test for unicode """
+"""Improved test to clone into uniq repository. """
+"""removed extra unicode conversion in diff.