diff src/browser/sat_browser/editor_widget.py @ 849:d32b754265a0

browser (strings, editor): add javascript version of fixXHTMLLinks and use it for displaying the rich blog messages (add links' missing scheme and open them in new tab)
author souliane <souliane@mailoo.org>
date Fri, 15 Jan 2016 16:34:37 +0100
parents ab87da500820
children fd4eae654182
line wrap: on
line diff
--- a/src/browser/sat_browser/editor_widget.py	Fri Jan 15 16:33:08 2016 +0100
+++ b/src/browser/sat_browser/editor_widget.py	Fri Jan 15 16:34:37 2016 +0100
@@ -294,6 +294,7 @@
             text = strings.addURLToText(text)
         if self.CONVERT_NEW_LINES:
             text = html_tools.convertNewLinesToXHTML(text)
+        text = strings.fixXHTMLLinks(text)
         self.display.setHTML(text)
 
     def setFocus(self, focus):