def METHOD_NAME(text, width=100):
    """
    Intelligently wrap text.
    Wrap text without breaking words if possible.
    Parameters
    ----------
    text : str
        Text to wrap.
    width : int, optional
        Number of characters to wrap to, default 100.
    """
    split_text = text.split("\n")
    wrp = map(lambda x: textwrap.wrap(x, width), split_text)  # noqa
    wrpd = map("\n".join, wrp)
    return "\n".join(wrpd)