code: def word_wrap(text, columns=80, indent=4, padding=2):
      
      paragraphs = _PARA_BREAK.split(text)
      lines = []
      columns -= padding
      for para in paragraphs:
          if para.isspace():
              continue
          line = ' ' * indent
          for word in para.split():
              if (len(line) + 1 + len(word)) > columns:
                  lines.append(line)
                  line = ' ' * padding
                  line += word
              else:
                  line += ' ' + word
          if not line.isspace():
              lines.append(line)
      return lines
docs: Given a block of text, breaks into a list of lines wrapped to
      length.