diff --git a/internal/explore/render.go b/internal/explore/render.go
index c65769c..26dab4f 100644
--- a/internal/explore/render.go
+++ b/internal/explore/render.go
@@ -168,7 +168,7 @@ func (w *jsonOutputter) EndMap() {
}
w.pop()
w.newline()
- w.Print(w.tabs() + "}")
+ w.Printf("%s}", w.tabs())
w.key = false
w.name = ""
w.unfresh()
@@ -188,7 +188,7 @@ func (w *jsonOutputter) EndArray() {
}
w.pop()
w.newline()
- w.Print(w.tabs() + "]")
+ w.Printf("%s]", w.tabs())
w.key = false
w.unfresh()
}
@@ -223,14 +223,13 @@ func (w *jsonOutputter) Fresh() bool {
}
func (w *jsonOutputter) push() {
- w.Print(w.tabs() + `
` + "\n")
+ w.Print(`
` + "\n")
w.fresh = append(w.fresh, true)
}
func (w *jsonOutputter) pop() {
w.fresh = w.fresh[:len(w.fresh)-1]
w.newline()
- w.Print(w.tabs())
w.undiv()
}
@@ -288,7 +287,7 @@ func (w *jsonOutputter) newline() {
}
func (w *jsonOutputter) div() {
- w.Print(w.tabs() + "
")
+ w.Print("
" + w.tabs() + "")
}
func (w *jsonOutputter) undiv() {
diff --git a/internal/explore/templates.go b/internal/explore/templates.go
index 3a57504..73e23bc 100644
--- a/internal/explore/templates.go
+++ b/internal/explore/templates.go
@@ -249,6 +249,10 @@ pre {
margin-left: 2em;
}
+.cp {
+ font-size: 0;
+}
+
.noselect {
user-select: none;
-webkit-user-select: none;