Continued porting the web browser. QtWebEngine

Tue, 08 Mar 2016 19:42:16 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 08 Mar 2016 19:42:16 +0100
branch
QtWebEngine
changeset 4823
cd467825a12d
parent 4822
f1b9899847dc
child 4824
08153ef89fc1

Continued porting the web browser.

- modified the JavaScript console slightly

WebBrowser/WebBrowserJavaScriptConsole.py file | annotate | diff | comparison | revisions
--- a/WebBrowser/WebBrowserJavaScriptConsole.py	Mon Mar 07 20:08:06 2016 +0100
+++ b/WebBrowser/WebBrowserJavaScriptConsole.py	Tue Mar 08 19:42:16 2016 +0100
@@ -96,12 +96,14 @@
         @param sourceId source URL causing the error
         @type str
         """
-        txt = self.tr("[{0}] {1}\n").format(
+        txt = self.tr("[{0}] {1}").format(
             self.__levelStrings[level], message)
         self.__appendText(txt)
         
         if lineNumber:
-            self.__appendText(self.tr("at line {0}\n").format(lineNumber))
+            self.__appendText(self.tr(" at line {0}\n").format(lineNumber))
+        else:
+            self.__appendText("\n")
         
         if sourceId:
             self.__appendText(self.tr("URL: {0}\n").format(sourceId))

eric ide

mercurial