--- a/eric6/QScintilla/MarkupProviders/RestructuredTextProvider.py Wed Sep 25 18:25:43 2019 +0200 +++ b/eric6/QScintilla/MarkupProviders/RestructuredTextProvider.py Wed Sep 25 18:37:35 2019 +0200 @@ -324,8 +324,9 @@ from .ImageMarkupDialog import ImageMarkupDialog dlg = ImageMarkupDialog(ImageMarkupDialog.RestMode) if dlg.exec_() == QDialog.Accepted: - address, altText, title, originalSize, width, height = \ + address, altText, title, originalSize, width, height = ( dlg.getData() + ) lineSeparator = editor.getLineSeparator() markup = ".. image:: {0}{1}".format(address, lineSeparator) @@ -399,8 +400,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): @@ -419,8 +421,9 @@ if listElements == 0: listElements = 1 cline, cindex = editor.getCursorPosition() - listBody = \ + listBody = ( listElements * "{1}{0}".format(lineSeparator, markup) + ) if cindex == 0: editor.insertAt(listBody, cline, cindex) editor.setCursorPosition(cline, len(markup))