def unwrap_wrapped_text(text):
    result = []
    _re_indentation = re.compile(r'^[ \t]*|[ \t]*$', re.MULTILINE)
    for paragraph in re.split(r'\n{2,}', text):
        paragraph = _re_indentation.sub('', paragraph)
        result.append(re.sub(r'\n', ' ', paragraph))
    return '\n'.join(result)
Serialize *element* to human-readable XML suitable for tests. No XML
dataset/ETHPy150Open foundit/Piped/piped/exceptions.py/unwrap_wrapped_text--crossover with--dataset/ETHPy150Open python-openxml/python-docx/docx/oxml/xmlchemy.py/serialize_for_reading