docs: func wrap(text string, length int, isIndented bool) string {
  	var buf bytes.Buffer
  	var last rune
  	var lastNL bool
  	var col int
  
  	for _, c := range text {
  		switch c {
  		case '\r': // ignore this
  			continue // and also don't track `last`
  		case '\n': // ignore this too, but reset col
  			if col >= length || last == '\n' {
  				buf.WriteString("\n")
  			}
  			buf.WriteString("\n")
  			col = 0
  		case ' ', '\t': // opportunity to split
  			if col >= length {
  				buf.WriteByte('\n')
  				col = 0
  				if isIndented {
  					buf.WriteString(indent)
  					col += 3
  				}
  			} else {
  				// We only want to write a leading space if the col is greater than zero.
  				// This will provide the proper spacing for documentation.
  				buf.WriteRune(c)
  				col++ // count column
  			}
  		default:
  			buf.WriteRune(c)
  			col++
  		}
  		lastNL = c == '\n'
  		_ = lastNL
  		last = c
  	}
  	return buf.String()
  }