mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-11 05:58:40 +00:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user