From: Neil Date: Fri, 16 May 2014 19:12:15 +0000 (+0200) Subject: Fix bug in text box widget and multiline strings with markup X-Git-Tag: 0.1~198 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=75d1f94ef500df4bea81d8988757d37221a310dd;p=naja.git Fix bug in text box widget and multiline strings with markup --- 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):