Fix bug in text box widget and multiline strings with markup
authorNeil <neil@dip.sun.ac.za>
Fri, 16 May 2014 19:12:15 +0000 (21:12 +0200)
committerNeil <neil@dip.sun.ac.za>
Fri, 16 May 2014 19:33:28 +0000 (21:33 +0200)
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):