Fix problem with extra space being added to class name (was causing mspace with background color to to show up properly)

This commit is contained in:
Davide P. Cervone 2012-01-30 08:05:45 -05:00
parent b1233d332c
commit 9d7b67a10c
8 changed files with 8 additions and 8 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1585,7 +1585,7 @@
if (this.href) {span = HTMLCSS.addElement(span,"a",{href:this.href, isMathJax:true})}
span = HTMLCSS.addElement(span,"span",{className: this.type, isMathJax:true});
if (HTMLCSS.imgHeightBug) {span.style.display = "inline-block"}
if (this["class"] != null) {span.className += " "+this["class"]}
if (this["class"]) {span.className += " "+this["class"]}
if (!this.spanID) {this.spanID = HTMLCSS.GetID()}
span.id = (this.id || "MathJax-Span-"+this.spanID) + HTMLCSS.idPostfix;
span.bbox = {w:0, h:0, d:0, lw:0, rw:0}; this.styles = {};