diff options
author | 2024-06-17 08:11:08 +0000 | |
---|---|---|
committer | 2024-06-17 08:11:08 +0000 | |
commit | b7dede2a477ca5b69eb225d69676069f57f3ec7b (patch) | |
tree | d82f259ec94947e674fbc3b288d5733995c65174 /vendor/github.com/tdewolff/parse/v2/util.go | |
parent | [chore]: Bump github.com/yuin/goldmark from 1.7.1 to 1.7.2 (#3018) (diff) | |
download | gotosocial-b7dede2a477ca5b69eb225d69676069f57f3ec7b.tar.xz |
[chore]: Bump github.com/tdewolff/minify/v2 from 2.20.33 to 2.20.34 (#3017)
Diffstat (limited to 'vendor/github.com/tdewolff/parse/v2/util.go')
-rw-r--r-- | vendor/github.com/tdewolff/parse/v2/util.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/github.com/tdewolff/parse/v2/util.go b/vendor/github.com/tdewolff/parse/v2/util.go index de8dab3df..a90ac6c39 100644 --- a/vendor/github.com/tdewolff/parse/v2/util.go +++ b/vendor/github.com/tdewolff/parse/v2/util.go @@ -196,6 +196,10 @@ func NewIndenter(w io.Writer, n int) Indenter { } } +func (in Indenter) Indent() int { + return len(in.b) +} + func (in Indenter) Write(b []byte) (int, error) { n, j := 0, 0 for i, c := range b { |