docs: def shortened(text, size=120):
      """
      Args:
          text (str | unicode): Text to shorten
          size (int): Max chars
  
      Returns:
          (str): Leading part of 'text' with at most 'size' chars
      """
      if text:
          text = text.strip()
          if len(text) > size:
              return "%s..." % text[:size - 3].strip()
      return text