hints kitten: Fix a regression that caused some blank lines to be not displayed
This commit is contained in:
@@ -259,6 +259,9 @@ def convert_text(text, cols):
|
|||||||
lines = []
|
lines = []
|
||||||
for full_line in text.split('\n'):
|
for full_line in text.split('\n'):
|
||||||
if full_line:
|
if full_line:
|
||||||
|
if full_line == '\r': # empty line
|
||||||
|
lines.append('\0' * cols)
|
||||||
|
continue
|
||||||
for line in full_line.split('\r'):
|
for line in full_line.split('\r'):
|
||||||
if line:
|
if line:
|
||||||
lines.append(line.ljust(cols, '\0'))
|
lines.append(line.ljust(cols, '\0'))
|
||||||
|
|||||||
Reference in New Issue
Block a user