summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2020-03-15 21:35:54 +0100
committerPaweł Redman <pawel.redman@gmail.com>2020-03-15 21:35:54 +0100
commit76405dae0d70ff4fafc3ab0380233ece24855202 (patch)
treed4aa4da3548d9e1013f0d3ba3930d5e2a81007a9
parent24f641766036661dff706fed56b6aff8f473cc8b (diff)
A lazy fix for the random empty lines
-rw-r--r--rcon.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/rcon.py b/rcon.py
index b8f7bc0..a0b8897 100644
--- a/rcon.py
+++ b/rcon.py
@@ -37,6 +37,10 @@ class JournalViewer:
def write(self, text, color_override=None):
for line in str(text).split("\n"):
+ # FIXME: where are these empty lines coming from?
+ if line == "":
+ continue
+
if color_override is None:
markup = trem_to_markup(line)
else: