mirror of https://github.com/n1nj4sec/pupy.git
Fix Section formatting
This commit is contained in:
parent
3cb589bfcb
commit
342e39aa22
|
@ -361,8 +361,8 @@ def hint_to_text(text, width=0):
|
||||||
])
|
])
|
||||||
elif hint == Section:
|
elif hint == Section:
|
||||||
return '\n'.join([
|
return '\n'.join([
|
||||||
colorize('#>#> ','green') + hint_to_text(text.data, width)+ colorize(' <#<#','green'),
|
colorize('#>#> ','green') + hint_to_text(text.header, width)+ colorize(' <#<#','green'),
|
||||||
hint_to_text(text.payload, width)
|
hint_to_text(text.data, width)
|
||||||
])
|
])
|
||||||
elif hint == Line:
|
elif hint == Line:
|
||||||
return text.dm.join(hint_to_text(v, width) for v in text.data)
|
return text.dm.join(hint_to_text(v, width) for v in text.data)
|
||||||
|
|
Loading…
Reference in New Issue