--- a/eric6/QScintilla/MarkupProviders/MarkdownProvider.py Wed Sep 25 18:25:43 2019 +0200 +++ b/eric6/QScintilla/MarkupProviders/MarkdownProvider.py Wed Sep 25 18:37:35 2019 +0200 @@ -302,8 +302,9 @@ from .ImageMarkupDialog import ImageMarkupDialog dlg = ImageMarkupDialog(ImageMarkupDialog.MarkDownMode) if dlg.exec_() == QDialog.Accepted: - address, altText, title, originalSize, width, height = \ + address, altText, title, originalSize, width, height = ( dlg.getData() + ) if title: markup = ''.format(altText, address, title) @@ -371,8 +372,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): @@ -391,8 +393,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))