diff options
| author | John Snow <jsnow@redhat.com> | 2022-03-21 16:16:01 -0400 |
|---|---|---|
| committer | Hanna Reitz <hreitz@redhat.com> | 2022-03-22 10:14:22 +0100 |
| commit | be73231ba836c34502af5ff419ab3ca23c60a6db (patch) | |
| tree | e35daccd022f4e77f8c844f79f38cbed570b94b9 /python/tests/iotests-pylint.sh | |
| parent | e48093a6c09e429f2bbe69c1e88b5b78f8b531f5 (diff) | |
| download | focaccia-qemu-be73231ba836c34502af5ff419ab3ca23c60a6db.tar.gz focaccia-qemu-be73231ba836c34502af5ff419ab3ca23c60a6db.zip | |
python/utils: add add_visual_margin() text decoration utility
>>> print(add_visual_margin(msg, width=72, name="Commit Message")) ┏━ Commit Message ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ┃ add_visual_margin() takes a chunk of text and wraps it in a visual ┃ container that force-wraps to a specified width. An optional title ┃ label may be given, and any of the individual glyphs used to draw the ┃ box may be replaced or specified as well. ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Acked-by: Hanna Reitz <hreitz@redhat.com> Message-Id: <20220321201618.903471-2-jsnow@redhat.com> Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Diffstat (limited to 'python/tests/iotests-pylint.sh')
0 files changed, 0 insertions, 0 deletions