Made game harder, beeeeeches.
[naja.git] / naja / widgets / text.py
index c4ac45600ec398a5679656eb668dbb3c174d41ce..1cf15d0bcf4601c72d52eb81d871ecedf8b454ec 100644 (file)
@@ -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):