390 @type bool |
390 @type bool |
391 """ |
391 """ |
392 if editor is None: |
392 if editor is None: |
393 return |
393 return |
394 |
394 |
395 if numberedList: |
395 markup = " #. " if numberedList else " * " |
396 markup = " #. " |
|
397 else: |
|
398 markup = " * " |
|
399 lineSeparator = editor.getLineSeparator() |
396 lineSeparator = editor.getLineSeparator() |
400 editor.beginUndoAction() |
397 editor.beginUndoAction() |
401 if editor.hasSelectedText(): |
398 if editor.hasSelectedText(): |
402 startLine, startIndex, endLine, endIndex = ( |
399 startLine, startIndex, endLine, endIndex = ( |
403 editor.getSelection() |
400 editor.getSelection() |