Early-stage code for horizontal text joining. That means obeying the line breaks and implicit columns in the given strings, rather than simply appending them linearly.
from hjoin import *
from colors import *
r = red('this perhaps\nand\nthat')
b = blue('and\none\nmore\nthing')
g = green('yet\nanother\n')
print(hjoin([r, b, g]))
- This module is not ready for prime time. It's currently published solely to enable distributed testing (CI pipeline). You shouldn't use it, depend on it, or expect anything specific from it. Especially don't expect its API will remain constant.