X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=naja%2Fwidgets%2Ftext.py;h=1ddab05915122bf9c22bdbf033f78da57ea0a13f;hb=87a82ccb10b6f7b07c48f8e9993243b9592e00b4;hp=9eba104065a18a2a84a4a947f683811f8c2e9241;hpb=d66e2b06ae1d22ec3908177fad044c494d458642;p=naja.git diff --git a/naja/widgets/text.py b/naja/widgets/text.py index 9eba104..1ddab05 100644 --- a/naja/widgets/text.py +++ b/naja/widgets/text.py @@ -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):