From a5c8ecc88bbdf2157f92d7bdf748b9c1f033e4db Mon Sep 17 00:00:00 2001 From: John Helmert Date: Mon, 22 Jul 2019 14:13:47 -0500 Subject: [PATCH] Fix space-checking strings in SubredditPage._draw_item_format --- tuir/subreddit_page.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuir/subreddit_page.py b/tuir/subreddit_page.py index d41700b..3f3a416 100644 --- a/tuir/subreddit_page.py +++ b/tuir/subreddit_page.py @@ -412,7 +412,7 @@ class SubredditPage(Page): # TODO - support line wrapping string = string.split('\n')[0] - if string is ' ': + if string == ' ': # Make sure spaces aren't treated like normal strings and print # them to the window this way. This ensures they won't be drawn # with an attribute.