Fix space-checking strings in SubredditPage._draw_item_format
This commit is contained in:
@@ -412,7 +412,7 @@ class SubredditPage(Page):
|
|||||||
# TODO - support line wrapping
|
# TODO - support line wrapping
|
||||||
string = string.split('\n')[0]
|
string = string.split('\n')[0]
|
||||||
|
|
||||||
if string is ' ':
|
if string == ' ':
|
||||||
# Make sure spaces aren't treated like normal strings and print
|
# Make sure spaces aren't treated like normal strings and print
|
||||||
# them to the window this way. This ensures they won't be drawn
|
# them to the window this way. This ensures they won't be drawn
|
||||||
# with an attribute.
|
# with an attribute.
|
||||||
|
|||||||
Reference in New Issue
Block a user