projects
/
naja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Mor deth wit speling
[naja.git]
/
naja
/
widgets
/
text.py
diff --git
a/naja/widgets/text.py
b/naja/widgets/text.py
index c4ac45600ec398a5679656eb668dbb3c174d41ce..1cf15d0bcf4601c72d52eb81d871ecedf8b454ec 100644
(file)
--- a/
naja/widgets/text.py
+++ b/
naja/widgets/text.py
@@
-173,6
+173,8
@@
class TextBoxWidget(TextWidget):
suffix = word[-1]
word = word[:-1]
+ if not word:
+ return None
if word[0] == '{' and word[-1] == '}':
subwords = word[1:-1].split(',')
if all(subword in MARKUP_MAP for subword in subwords):