www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 896aeac81b1500b45e6279b8889cc696fd51efbc
parent 53e416e2962cfdb3f0dbb54dcc2b6e156b6339c4
Author: Martin von Gagern <gagern@ma.tum.de>
Date:   Wed, 11 Jan 2017 13:30:11 +0100

Fix some indentation and comma inconsistencies

This makes eslint happy again.

Diffstat:
Msrc/buildHTML.js | 9+++++----
Msrc/buildMathML.js | 15+++++++--------
2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/src/buildHTML.js b/src/buildHTML.js @@ -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); } }; diff --git a/src/buildMathML.js b/src/buildMathML.js @@ -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;