Remove restriction on formatting empty block (#1178)

This commit is contained in:
Veronica Berglyd Olsen
2022-10-29 01:05:33 +02:00
parent 6d15bc5f14
commit 33eb3efb11
+1 -5
View File
@@ -1709,12 +1709,8 @@ class GuiDocEditor(QTextEdit):
logger.debug("Invalid block selected for action '%s'", str(docAction))
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
theText = theBlock.text()
if theText.startswith("@"):
logger.error("Cannot apply block format to keyword/value line")
return False