eric6/QScintilla/MarkupProviders/HtmlProvider.py

changeset 7267
aedc309827c7
parent 7229
53054eb5b15a
child 7360
9190402e4505
--- a/eric6/QScintilla/MarkupProviders/HtmlProvider.py	Wed Sep 25 18:25:43 2019 +0200
+++ b/eric6/QScintilla/MarkupProviders/HtmlProvider.py	Wed Sep 25 18:37:35 2019 +0200
@@ -298,8 +298,9 @@
         from .ImageMarkupDialog import ImageMarkupDialog
         dlg = ImageMarkupDialog(ImageMarkupDialog.HtmlMode)
         if dlg.exec_() == QDialog.Accepted:
-            address, altText, title, originalSize, width, height = \
+            address, altText, title, originalSize, width, height = (
                 dlg.getData()
+            )
             
             markup = '<img src="{0}"'.format(address)
             if altText:
@@ -368,8 +369,9 @@
         lineSeparator = editor.getLineSeparator()
         editor.beginUndoAction()
         if editor.hasSelectedText():
-            startLine, startIndex, endLine, endIndex = \
+            startLine, startIndex, endLine, endIndex = (
                 editor.getSelection()
+            )
             if endIndex == 0:
                 endLine -= 1
             for line in range(startLine, endLine + 1):
@@ -394,8 +396,9 @@
                 if listElements == 0:
                     listElements = 1
                 cline, cindex = editor.getCursorPosition()
-                listBody = \
+                listBody = (
                     listElements * "  <li></li>{0}".format(lineSeparator)
+                )
                 markup = "<{1}>{0}{2}</{1}>{0}".format(
                     lineSeparator, listType, listBody)
                 if cindex == 0:

eric ide

mercurial