User:PleaseStand/segregate-refs-dev.js: Difference between revisions

Content deleted Content added
m debugging
m that should be it
Line 207:
var parser; var attributes; var refName; var refLong; var refShort;
var refCodes = []; var refEmpty; var emptyRefsWarningGiven = false;
var refGroup; var refOpening;
// Disable the empty refs warning (see below) if the user has disabled it
Line 267:
};
refCodes[refNames[refName].code] = refLong;
// Make a short code for the ref
refOpening = refEmpty ? "<ref " : refPreferred;
if(!refGroup.length) {
refShort = refPreferredrefOpening + "name=" + refName.PsHTMLQuote() + "/>";
refName.PsHTMLQuote() + "/>";
} else {
refShort = refPreferredrefOpening + "name=" + refName.PsHTMLQuote() + " " +
" " + "group=" + refGroup.PsHTMLQuote() + "/>";
}
// Otherwise, is the current longcode not empty?
Line 361 ⟶ 362:
}
}
window.alert(JSON.stringify(preferredRef));
// Finally, we go through the text again and this time we insert the