From 342e39aa22e8cb849f4128ab86c949396eb4c854 Mon Sep 17 00:00:00 2001 From: Oleksii Shevchuk Date: Wed, 26 Sep 2018 23:23:46 +0300 Subject: [PATCH] Fix Section formatting --- pupy/pupylib/utils/term.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pupy/pupylib/utils/term.py b/pupy/pupylib/utils/term.py index 6c5eebaf..d67879aa 100644 --- a/pupy/pupylib/utils/term.py +++ b/pupy/pupylib/utils/term.py @@ -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)