def join_lines(text):
    return re.sub(r'(\S)\n(\S)', r'\1 \2', text)
Remove "hard wrapping" from the paragraphs in a string.
dataset/ETHPy150Open xolox/python-humanfriendly/humanfriendly/text.py/join_lines