Skip to content

Commit 54e4dbb

Browse files
authored
refactor(util/Styles.ts): consistent serialization
Improves consistency of serialization across adaptors. Resolves mathjax/MathJax#2726
1 parent 331eb8b commit 54e4dbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ts/util/Styles.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,10 +398,10 @@ export class Styles {
398398
for (const name of Object.keys(this.styles)) {
399399
const parent = this.parentName(name);
400400
if (!this.styles[parent]) {
401-
styles.push(name + ': ' + this.styles[name]);
401+
styles.push(name + ': ' + this.styles[name] + ';');
402402
}
403403
}
404-
return styles.join('; ');
404+
return styles.join(' ');
405405
}
406406

407407
/**

0 commit comments

Comments
 (0)