If a break occurs at a space or operator that has non-zero width, don't remove next element's initial spacing.
This commit is contained in:
parent
12f969593d
commit
309dbc5a4a
|
@ -369,7 +369,8 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
|
|||
span.style.paddingLeft = "";
|
||||
if (color) {this.HTMLremoveColor(span); this.HTMLhandleColor(span)}
|
||||
}
|
||||
if (state.first) {state.nextIsFirst = true} else {delete state.nextIsFirst}
|
||||
if (state.first && span.bbox.w === 0) {state.nextIsFirst = true}
|
||||
else {delete state.nextIsFirst}
|
||||
//
|
||||
// Update bounding box
|
||||
//
|
||||
|
|
|
@ -336,7 +336,8 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
|
|||
if (state.last && svg.X) {svg.X = 0}
|
||||
line.Add(svg,line.w,0,true);
|
||||
}
|
||||
if (state.first) {state.nextIsFirst = true} else {delete state.nextIsFirst}
|
||||
if (state.first && svg.w === 0) {state.nextIsFirst = true}
|
||||
else {delete state.nextIsFirst}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user