Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for oneLongLine (0.19 sec)

  1. src/go/doc/comment/text.go

    			if j > 0 {
    				out.WriteString(" ")
    			}
    			out.WriteString(w)
    		}
    		writeNL(out)
    	}
    }
    
    // oneLongLine prints the text sequence x to out as one long line,
    // without worrying about line wrapping.
    // Explicit links have the [ ] dropped to improve readability.
    func (p *textPrinter) oneLongLine(out *strings.Builder, x []Text) {
    	for _, t := range x {
    		switch t := t.(type) {
    		case Plain:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  2. src/go/doc/comment/print.go

    	// Note: The “hdr-” prefix is important to avoid DOM clobbering attacks.
    	// See https://pkg.go.dev/github.com/google/safehtml#Identifier.
    	var out strings.Builder
    	var p textPrinter
    	p.oneLongLine(&out, h.Text)
    	s := strings.TrimSpace(out.String())
    	if s == "" {
    		return ""
    	}
    	out.Reset()
    	out.WriteString("hdr-")
    	for _, r := range s {
    		if r < 0x80 && isIdentASCII(byte(r)) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 7.6K bytes
    - Viewed (0)
Back to top