MCPcopy Create free account
hub / github.com/dim-an/cod / ParagraphEnd

Method ParagraphEnd

parse_doc/textutil.go:84–92  ·  view source on GitHub ↗

Find first empty line starting from line `start'.

(start int)

Source from the content-addressed store, hash-verified

82//
83// Find first empty line starting from line `start'.
84func (pt *preparedText) ParagraphEnd(start int) int {
85 cur := start
86 for ; cur < len(pt.lines); cur++ {
87 if strings.TrimSpace(pt.lines[cur]) == "" {
88 return cur
89 }
90 }
91 return cur
92}
93
94type lineTree struct {
95 line string

Callers 1

ParseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected