def compact(text, *args, **kw):
    non_whitespace_tokens = text.split()
    compacted_text = ' '.join(non_whitespace_tokens)
    return format(compacted_text, *args, **kw)
Default injection context constructor.
dataset/ETHPy150Open xolox/python-humanfriendly/humanfriendly/text.py/compact--crossover with--dataset/ETHPy150Open sysdream/pysqli/pysqli/core/context.py/Context.__init__