Fix bug in text box widget and multiline strings with markup
[naja.git] / naja / widgets / text.py
index 9eba104065a18a2a84a4a947f683811f8c2e9241..1ddab05915122bf9c22bdbf033f78da57ea0a13f 100644 (file)
@@ -143,6 +143,7 @@ class TextBoxWidget(TextWidget):
                         word = glyph.markup_text
                     remaining_words.insert(0, word)
             if current_words and words_fit(current_words):
+                line_count += 1
                 yield ' '.join(current_words)
 
     def prepare(self):