code: def _wrap_content(content, 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
docs: Wrap given content into lines of given width.