From 0b80a55f798e21a6c72b3924d120034ffebd9a3f Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Wed, 24 Aug 2022 00:53:42 -0400 Subject: [PATCH] Repaired output formatting of interface section --- parser/tree-tostring.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parser/tree-tostring.go b/parser/tree-tostring.go index 832c3a0..df8a9b1 100644 --- a/parser/tree-tostring.go +++ b/parser/tree-tostring.go @@ -378,11 +378,11 @@ func (behavior *FaceBehavior) ToString (indent int) (output string) { output += doIndent(indent, behavior.name, "\n") for _, inputItem := range behavior.inputs { - output += doIndent(indent, "> ", inputItem.ToString(), "\n") + output += doIndent(indent + 1, "> ", inputItem.ToString(), "\n") } for _, outputItem := range behavior.outputs { - output += doIndent(indent, "< ", outputItem.ToString(), "\n") + output += doIndent(indent + 1, "< ", outputItem.ToString(), "\n") } return