def docx_process_simple_text(text: str, width: int) -> str:
    """
    Word-wraps text.

    Args:
        text: text to process
        width: width to word-wrap to (or 0 to skip word wrapping)

    Returns:
        wrapped text
    """
    if width:
        return '\n'.join(textwrap.wrap(text, width=width))
    else:
        return text