MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / processWhitespace

Function processWhitespace

pkg/vdom/vdom_html.go:201–212  ·  view source on GitHub ↗
(htmlStr string)

Source from the content-addressed store, hash-verified

199}
200
201func processWhitespace(htmlStr string) string {
202 lines := strings.Split(htmlStr, "\n")
203 var newLines []string
204 for _, line := range lines {
205 trimmedLine := trimWhitespaceConditionally(line + "\n")
206 if trimmedLine == "" {
207 continue
208 }
209 newLines = append(newLines, trimmedLine)
210 }
211 return strings.Join(newLines, "")
212}
213
214func processTextStr(s string) string {
215 if s == "" {

Callers 1

BindFunction · 0.85

Calls 1

Tested by

no test coverage detected