Remove restriction on formatting empty block (#1178)
This commit is contained in:
@@ -1709,12 +1709,8 @@ class GuiDocEditor(QTextEdit):
|
|||||||
logger.debug("Invalid block selected for action '%s'", str(docAction))
|
logger.debug("Invalid block selected for action '%s'", str(docAction))
|
||||||
return False
|
return False
|
||||||
|
|
||||||
theText = theBlock.text()
|
|
||||||
if len(theText.strip()) == 0:
|
|
||||||
logger.debug("Empty block selected for action '%s'", str(docAction))
|
|
||||||
return False
|
|
||||||
|
|
||||||
# Remove existing format first, if any
|
# Remove existing format first, if any
|
||||||
|
theText = theBlock.text()
|
||||||
if theText.startswith("@"):
|
if theText.startswith("@"):
|
||||||
logger.error("Cannot apply block format to keyword/value line")
|
logger.error("Cannot apply block format to keyword/value line")
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user