diff src/browser/sat_browser/html_tools.py @ 803:89a0cd2aa763

browser_side: convertNewLinesToXHTML should only be called on raw text messages: - some people use \n to aerate the text but don't necessarily want to see them as <br /> - method expandNewLinesToXHTML in backend finds the best out both editing styles
author souliane <souliane@mailoo.org>
date Thu, 10 Dec 2015 13:30:27 +0100
parents 9877607c719a
children f8a7a046ff9c
line wrap: on
line diff
--- a/src/browser/sat_browser/html_tools.py	Thu Dec 10 11:19:46 2015 +0100
+++ b/src/browser/sat_browser/html_tools.py	Thu Dec 10 13:30:27 2015 +0100
@@ -44,6 +44,7 @@
 
 
 def convertNewLinesToXHTML(text):
+    """Replace all the \n with <br/>"""
     return text.replace('\n', '<br/>')