Fixed List.ToString for non breakline

This commit is contained in:
Sasha Koshka 2022-09-27 18:18:38 -04:00
parent 8dd90e1c6b
commit 3a4ccdda10

View File

@ -119,11 +119,12 @@ func (list List) ToString (indent int, breakline bool) (output string) {
output += doIndent(indent, "(") output += doIndent(indent, "(")
if breakline { output += "\n" } if breakline { output += "\n" }
for _, argument := range list.arguments { for index, argument := range list.arguments {
if !breakline && index > 0 { output += " "}
output += argument.ToString(indent, breakline) output += argument.ToString(indent, breakline)
} }
output += doIndent(indent, "(") output += doIndent(indent, ")")
if breakline { output += "\n" } if breakline { output += "\n" }
return return
} }