(htmlStr string)
| 199 | } |
| 200 | |
| 201 | func 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 | |
| 214 | func processTextStr(s string) string { |
| 215 | if s == "" { |
no test coverage detected