Correct spacing next to symbols when styles switch.

Two nodes were sharing a list of classes, which led to the style
change applying multiple times. Fix that.
This commit is contained in:
Eddie Kohler
2016-12-08 16:06:21 -05:00
parent 7433638fda
commit 72362ecf88
4 changed files with 2 additions and 1 deletions

View File

@@ -83,7 +83,7 @@ var buildExpression = function(expression, options, isRealGroup) {
i--;
} else if (spaces) {
if (groups[i] instanceof domTree.symbolNode) {
groups[i] = makeSpan(groups[i].classes, [groups[i]]);
groups[i] = makeSpan([].concat(groups[i].classes), [groups[i]]);
}
buildCommon.prependChildren(groups[i], spaces);
spaces = null;