docs: def ellipsis(text, length, symbol="..."):
      """Present a block of text of given length.
      
      If the length of available text exceeds the requested length, truncate and
      intelligently append an ellipsis.
      """
      if len(text) > length:
          pos = text.rfind(" ", 0, length)
          if pos < 0:
              return text[:length].rstrip(".") + symbol
          else:
              return text[:pos].rstrip(".") + symbol
      
      else:
          return text