mirror of
https://github.com/github/semantic.git
synced 2024-11-25 11:04:00 +03:00
Skip empty things.
This commit is contained in:
parent
c01624abe9
commit
28d7325647
@ -111,6 +111,7 @@
|
||||
var previous = range[0];
|
||||
for (i in syntax.indexed) {
|
||||
var child = syntax.indexed[i];
|
||||
if (child.pure == "") continue;
|
||||
var childRange = getRange(child);
|
||||
element.appendChild(document.createTextNode(source.substr(previous, childRange[0] - previous)));
|
||||
element.appendChild(wrap("li", recur(child)));
|
||||
@ -121,6 +122,7 @@
|
||||
element = document.createElement("dl");
|
||||
var values = [];
|
||||
for (k in syntax.keyed.values) {
|
||||
if (syntax.keyed.values[k].pure == "") continue;
|
||||
values.push([ k, syntax.keyed.values[k] ]);
|
||||
}
|
||||
values.sort(function(a, b) {
|
||||
|
Loading…
Reference in New Issue
Block a user