code: def truncate_ellipsis(line, length=30):
      
  
      l = len(line)
      return line if l < length else line[:length - 3] + "..."
docs: Truncate a line to the specified length followed by ``...`` unless its shorter than length already.