mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
Fixed warning sand extra spaces in linearization in gflib.js.
This commit is contained in:
@@ -30,6 +30,7 @@ function parseTree_(tokens, prec) {
|
||||
} else {
|
||||
var tree = new Fun(t);
|
||||
if (prec == 0) {
|
||||
var c;
|
||||
while ((c = parseTree_(tokens, 1)) !== null) {
|
||||
tree.children.push(c);
|
||||
}
|
||||
@@ -103,9 +104,10 @@ function copy_arguments(args, start) {
|
||||
function join_print(values, glue) {
|
||||
var str = "";
|
||||
for (var i = 0; i < values.length; i++) {
|
||||
str += values[i].print();
|
||||
if (i < values.length - 1) {
|
||||
str += glue;
|
||||
var s = values[i].print();
|
||||
if (s.length > 0) {
|
||||
if (str.length > 0) { str += glue; }
|
||||
str += s;
|
||||
}
|
||||
}
|
||||
return str;
|
||||
|
||||
Reference in New Issue
Block a user