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:
Davide P. Cervone 2014-03-21 16:54:10 -04:00
parent 12f969593d
commit 309dbc5a4a
2 changed files with 4 additions and 2 deletions

View File

@ -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
//

View File

@ -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}
}
});