Use regular block format function for single block
This commit is contained in:
@@ -1774,7 +1774,7 @@ class GuiDocEditor(QPlainTextEdit):
|
|||||||
"""
|
"""
|
||||||
cursor = self.textCursor()
|
cursor = self.textCursor()
|
||||||
blocks = self._selectedBlocks(cursor)
|
blocks = self._selectedBlocks(cursor)
|
||||||
if len(blocks) < 1:
|
if len(blocks) < 2:
|
||||||
return self._formatBlock(action)
|
return self._formatBlock(action)
|
||||||
|
|
||||||
toggle = True
|
toggle = True
|
||||||
|
|||||||
Reference in New Issue
Block a user