hints kitten: Fix a regression that caused some blank lines to be not displayed

This commit is contained in:
Kovid Goyal
2018-05-26 13:35:44 +05:30
parent 94f1759b14
commit 978dc008e2

View File

@@ -259,6 +259,9 @@ def convert_text(text, cols):
lines = []
for full_line in text.split('\n'):
if full_line:
if full_line == '\r': # empty line
lines.append('\0' * cols)
continue
for line in full_line.split('\r'):
if line:
lines.append(line.ljust(cols, '\0'))