summaryrefslogtreecommitdiff
path: root/vendor/github.com/tdewolff/parse/v2/util.go
diff options
context:
space:
mode:
authorLibravatar dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2024-06-17 08:11:08 +0000
committerLibravatar GitHub <noreply@github.com>2024-06-17 08:11:08 +0000
commitb7dede2a477ca5b69eb225d69676069f57f3ec7b (patch)
treed82f259ec94947e674fbc3b288d5733995c65174 /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)
downloadgotosocial-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.go4
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 {