Fix some indentation and comma inconsistencies
This makes eslint happy again.
This commit is contained in:
parent
53e416e296
commit
896aeac81b
|
@ -113,8 +113,10 @@ var getTypeOfDomTree = function(node) {
|
|||
node.children[node.children.length - 1]);
|
||||
}
|
||||
} else {
|
||||
if (utils.contains(["mord", "mop", "mbin", "mrel", "mopen", "mclose",
|
||||
"mpunct", "minner"], node.classes[0])) {
|
||||
if (utils.contains([
|
||||
"mord", "mop", "mbin", "mrel", "mopen", "mclose",
|
||||
"mpunct", "minner",
|
||||
], node.classes[0])) {
|
||||
return node.classes[0];
|
||||
}
|
||||
}
|
||||
|
@ -723,8 +725,7 @@ groupTypes.spacing = function(group, options) {
|
|||
// Other kinds of spaces are of arbitrary width. We use CSS to
|
||||
// generate these.
|
||||
return makeSpan(
|
||||
["mspace",
|
||||
buildCommon.spacingFunctions[group.value].className],
|
||||
["mspace", buildCommon.spacingFunctions[group.value].className],
|
||||
[], options);
|
||||
}
|
||||
};
|
||||
|
|
|
@ -194,8 +194,10 @@ groupTypes.supsub = function(group, options) {
|
|||
groupTypes.genfrac = function(group, options) {
|
||||
var node = new mathMLTree.MathNode(
|
||||
"mfrac",
|
||||
[buildGroup(group.value.numer, options),
|
||||
buildGroup(group.value.denom, options)]);
|
||||
[
|
||||
buildGroup(group.value.numer, options),
|
||||
buildGroup(group.value.denom, options),
|
||||
]);
|
||||
|
||||
if (!group.value.hasBarLine) {
|
||||
node.setAttribute("linethickness", "0px");
|
||||
|
@ -298,8 +300,7 @@ groupTypes.accent = function(group, options) {
|
|||
|
||||
var node = new mathMLTree.MathNode(
|
||||
"mover",
|
||||
[buildGroup(group.value.base, options),
|
||||
accentNode]);
|
||||
[buildGroup(group.value.base, options), accentNode]);
|
||||
|
||||
node.setAttribute("accent", "true");
|
||||
|
||||
|
@ -451,8 +452,7 @@ groupTypes.overline = function(group, options) {
|
|||
|
||||
var node = new mathMLTree.MathNode(
|
||||
"mover",
|
||||
[buildGroup(group.value.body, options),
|
||||
operator]);
|
||||
[buildGroup(group.value.body, options), operator]);
|
||||
node.setAttribute("accent", "true");
|
||||
|
||||
return node;
|
||||
|
@ -465,8 +465,7 @@ groupTypes.underline = function(group, options) {
|
|||
|
||||
var node = new mathMLTree.MathNode(
|
||||
"munder",
|
||||
[buildGroup(group.value.body, options),
|
||||
operator]);
|
||||
[buildGroup(group.value.body, options), operator]);
|
||||
node.setAttribute("accentunder", "true");
|
||||
|
||||
return node;
|
||||
|
|
Loading…
Reference in New Issue
Block a user