code: def pretty_description(description, wrap_at=None, indent=0):
      if wrap_at is None or wrap_at < 0:
          width = console_width(default=79)
          if wrap_at is None:
              wrap_at = width
          else:
              wrap_at += width
      indent = ' ' * indent
      text_wrapper = textwrap.TextWrapper(
          width=wrap_at, replace_whitespace=False,
          initial_indent=indent, subsequent_indent=indent)
      new_desc = []
      for line in description.split('\n'):
          new_desc.append(line.replace('\n', '').strip())
      while not new_desc[0]:
          del new_desc[0]
      while not new_desc[-1]:
          del new_desc[-1]
      separators = [i for i, l in enumerate(new_desc) if not l]
      paragraphs = []
      if separators:
          start, end = 0, separators[0]
          paragraphs.append(new_desc[start:end])
          for i in range(len(separators) - 1):
              start = end + 1
              end = separators[i + 1]
              paragraphs.append(new_desc[start:end])
          paragraphs.append(new_desc[end + 1:])
          return '\n\n'.join(text_wrapper.fill(' '.join(p)) for p in paragraphs)
      return text_wrapper.fill(' '.join(new_desc))