Upgrade citeproc-js to version 1.0.292
This commit is contained in:
parent
e35e059c03
commit
2de4ab7e8e
1 changed files with 13 additions and 11 deletions
|
@ -2149,7 +2149,7 @@ CSL.DateParser = function () {
|
||||||
};
|
};
|
||||||
CSL.Engine = function (sys, style, lang, forceLang) {
|
CSL.Engine = function (sys, style, lang, forceLang) {
|
||||||
var attrs, langspec, localexml, locale;
|
var attrs, langspec, localexml, locale;
|
||||||
this.processor_version = "1.0.291";
|
this.processor_version = "1.0.292";
|
||||||
this.csl_version = "1.0";
|
this.csl_version = "1.0";
|
||||||
this.sys = sys;
|
this.sys = sys;
|
||||||
this.sys.xml = new CSL.System.Xml.Parsing();
|
this.sys.xml = new CSL.System.Xml.Parsing();
|
||||||
|
@ -7304,18 +7304,20 @@ CSL.Node.number = {
|
||||||
if (newstr && !newstr.match(/^[-.\u20130-9]+$/)) {
|
if (newstr && !newstr.match(/^[-.\u20130-9]+$/)) {
|
||||||
state.output.append(newstr, this);
|
state.output.append(newstr, this);
|
||||||
} else {
|
} else {
|
||||||
state.output.openLevel("empty");
|
if (values.length) {
|
||||||
for (var i = 0, ilen = values.length; i < ilen; i += 1) {
|
state.output.openLevel("empty");
|
||||||
var blob = new CSL[values[i][0]](values[i][1], values[i][2], Item.id);
|
for (var i = 0, ilen = values.length; i < ilen; i += 1) {
|
||||||
if (i > 0) {
|
var blob = new CSL[values[i][0]](values[i][1], values[i][2], Item.id);
|
||||||
blob.strings.prefix = blob.strings.prefix.replace(/^\s*/, "");
|
if (i > 0) {
|
||||||
|
blob.strings.prefix = blob.strings.prefix.replace(/^\s*/, "");
|
||||||
|
}
|
||||||
|
if (i < values.length - 1) {
|
||||||
|
blob.strings.suffix = blob.strings.suffix.replace(/\s*$/, "");
|
||||||
|
}
|
||||||
|
state.output.append(blob, "literal", false, false, true);
|
||||||
}
|
}
|
||||||
if (i < values.length - 1) {
|
state.output.closeLevel("empty");
|
||||||
blob.strings.suffix = blob.strings.suffix.replace(/\s*$/, "");
|
|
||||||
}
|
|
||||||
state.output.append(blob, "literal", false, false, true);
|
|
||||||
}
|
}
|
||||||
state.output.closeLevel("empty");
|
|
||||||
}
|
}
|
||||||
state.parallel.CloseVariable("number");
|
state.parallel.CloseVariable("number");
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue