docs: def snip_line(line, max_width, split_at):
      """Shorten a line to a maximum length."""
      if len(line) < max_width:
          return line
      return line[:split_at] + " … " \
          + line[-(max_width - split_at - 3):]