Fix Section formatting

This commit is contained in:
Oleksii Shevchuk 2018-09-26 23:23:46 +03:00
parent 3cb589bfcb
commit 342e39aa22
1 changed files with 2 additions and 2 deletions

View File

@ -361,8 +361,8 @@ def hint_to_text(text, width=0):
])
elif hint == Section:
return '\n'.join([
colorize('#>#> ','green') + hint_to_text(text.data, width)+ colorize(' <#<#','green'),
hint_to_text(text.payload, width)
colorize('#>#> ','green') + hint_to_text(text.header, width)+ colorize(' <#<#','green'),
hint_to_text(text.data, width)
])
elif hint == Line:
return text.dm.join(hint_to_text(v, width) for v in text.data)