eric6/QScintilla/MarkupProviders/MarkdownProvider.py

changeset 8235
78e6d29eb773
parent 8218
7c09585bd960
equal deleted inserted replaced
8234:fcb6b4b96274 8235:78e6d29eb773
362 @type bool 362 @type bool
363 """ 363 """
364 if editor is None: 364 if editor is None:
365 return 365 return
366 366
367 if numberedList: 367 markup = " 1. " if numberedList else " * "
368 markup = " 1. "
369 else:
370 markup = " * "
371 lineSeparator = editor.getLineSeparator() 368 lineSeparator = editor.getLineSeparator()
372 editor.beginUndoAction() 369 editor.beginUndoAction()
373 if editor.hasSelectedText(): 370 if editor.hasSelectedText():
374 startLine, startIndex, endLine, endIndex = ( 371 startLine, startIndex, endLine, endIndex = (
375 editor.getSelection() 372 editor.getSelection()

eric ide

mercurial