import textwrap


def _textwrap_wrap(string, justify):
    """
    Custom instantiation of textwrap.wrap() to account for new lines in string.
    """
    output = []

    for line in string.splitlines():
        justified = textwrap.wrap(
            line, justify,
            break_long_words=False, replace_whitespace=False
        )

        output.extend(justified)

    return output