You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
It seems that if I'm using an encoder to encode a ast.Node, the IndentEncodeOption is ignored in favour of the original indent of the node. Is there another way to change the indentation of the node on encode?
Describe the bug
It seems that if I'm using an encoder to encode a
ast.Node
, theIndent
EncodeOption
is ignored in favour of the original indent of the node. Is there another way to change the indentation of the node on encode?To Reproduce
https://go.dev/play/p/3bFW6s9BX6n
Expected behavior
I expected, given the indent option with a value of 4, to receive a 4-space indented yaml result.
Screenshots
If applicable, add screenshots to help explain your problem.
Version Variables
The text was updated successfully, but these errors were encountered: