diff --git a/node.go b/node.go index 65f63c3..64a57a5 100644 --- a/node.go +++ b/node.go @@ -756,6 +756,7 @@ func (this *conversionState) convertNoFreeFloating(n_ node.Node) (string, error) return "", parseErr{n, err} } + ret = strings.TrimRight(ret, "\n") ret += " else if " + cond + body } @@ -770,6 +771,7 @@ func (this *conversionState) convertNoFreeFloating(n_ node.Node) (string, error) return "", parseErr{n, err} } + ret = strings.TrimRight(ret, "\n") ret += " else " + body }