Wrap given content into lines of given width.

def _wrap_content(content, width):
        """
        Wrap given content into lines of given width.
        """
        data = []
        if isinstance(content, list):
            data += content
        else:
            data.append(content)

        lines = []
        for d in data:
            l = textwrap.wrap(d, width)
            lines += l
        return lines