src/eric7/QScintilla/MarkupProviders/RestructuredTextProvider.py

branch
eric7
changeset 10692
9becf9ca115c
parent 10482
72d9b5ea39b4
child 11006
a671918232f3
--- a/src/eric7/QScintilla/MarkupProviders/RestructuredTextProvider.py	Tue Apr 23 09:29:13 2024 +0200
+++ b/src/eric7/QScintilla/MarkupProviders/RestructuredTextProvider.py	Tue Apr 23 11:26:04 2024 +0200
@@ -146,7 +146,7 @@
         lineSeparator = editor.getLineSeparator()
         editor.beginUndoAction()
         if editor.hasSelectedText():
-            sline, sindex, eline, eindex = editor.getSelection()
+            sline, _sindex, eline, eindex = editor.getSelection()
             if not editor.text(sline).startswith((" ", "\t")):
                 # assume that all selected lines need indentation,
                 # if first line needs it
@@ -296,7 +296,7 @@
         lineSeparator = editor.getLineSeparator()
         editor.beginUndoAction()
         markup = "> "
-        sline, sindex, eline, eindex = editor.getSelection()
+        sline, _sindex, eline, eindex = editor.getSelection()
         for line in range(sline, eline + 1 if eindex > 0 else eline):
             editor.insertAt(markup, line, 0)
         editor.insertAt("::{0}{0}".format(lineSeparator), sline, 0)
@@ -326,7 +326,7 @@
 
         dlg = ImageMarkupDialog(ImageMarkupMode.Rest)
         if dlg.exec() == QDialog.DialogCode.Accepted:
-            address, altText, title, originalSize, width, height = dlg.getData()
+            address, altText, _title, originalSize, width, height = dlg.getData()
 
             lineSeparator = editor.getLineSeparator()
             markup = ".. image:: {0}{1}".format(address, lineSeparator)
@@ -397,7 +397,7 @@
         lineSeparator = editor.getLineSeparator()
         editor.beginUndoAction()
         if editor.hasSelectedText():
-            startLine, startIndex, endLine, endIndex = editor.getSelection()
+            startLine, _startIndex, endLine, endIndex = editor.getSelection()
             if endIndex == 0:
                 endLine -= 1
             for line in range(startLine, endLine + 1):

eric ide

mercurial