import re


def reflow_paragraphs(text: str) -> str:
    """
    Strip line feeds from paragraphs while preserving them between paragraphs.

    Source: https://stackoverflow.com/a/36242533
    """
    return re.sub(r"(?<!\n)\n(?![\n\t])", " ", text.replace("\r", ""))