Explorar o código

good enough indent implementation

Tao Wen %!s(int64=8) %!d(string=hai) anos
pai
achega
925df245d3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      feature_adapter.go

+ 1 - 1
feature_adapter.go

@@ -175,5 +175,5 @@ func (adapter *AdaptedEncoder) Encode(val interface{}) error {
 }
 
 func (adapter *AdaptedEncoder) SetIndent(prefix, indent string) {
-	// not implemented yet
+	adapter.stream.IndentionStep = len(indent)
 }