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() |