Fixed List.ToString for non breakline
This commit is contained in:
parent
8dd90e1c6b
commit
3a4ccdda10
@ -119,11 +119,12 @@ func (list List) ToString (indent int, breakline bool) (output string) {
|
||||
output += doIndent(indent, "(")
|
||||
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 += doIndent(indent, "(")
|
||||
output += doIndent(indent, ")")
|
||||
if breakline { output += "\n" }
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user