From a930c9ccb3641257cbe3bc80e11d335d5767746f Mon Sep 17 00:00:00 2001 From: AdamMusa Date: Sat, 11 Sep 2021 16:28:19 +0100 Subject: [PATCH] fix bug --- cfonts/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cfonts/core.py b/cfonts/core.py index 801def3..1cfab61 100644 --- a/cfonts/core.py +++ b/cfonts/core.py @@ -306,7 +306,7 @@ def render( char_length(font_face.letterspace, letter_spacing) * letter_spacing ) - if max_chars > max_length != 0 or c == "|" or line_length > size[0]: + if max_chars > int(max_length) != 0 or c == "|" or line_length > size[0]: lines += 1 output = align_text( output, last_line_length, font_face.lines, align, size