()
| 67 | } |
| 68 | |
| 69 | func (w *textWriter) HasTrailingWhitespace() bool { |
| 70 | if w.builder.Len() == 0 { |
| 71 | return false |
| 72 | } |
| 73 | ch, _ := utf8.DecodeLastRuneInString(w.lastWritten) |
| 74 | if ch == utf8.RuneError { |
| 75 | return false |
| 76 | } |
| 77 | return stringutil.IsWhiteSpaceLike(ch) |
| 78 | } |
| 79 | |
| 80 | func (w *textWriter) IncreaseIndent() { |
| 81 | w.indent++ |
nothing calls this directly
no test coverage detected