Skip to content

Commit b304106

Browse files
committed
Fixes requested in review
1 parent bbc9627 commit b304106

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

ts/output/chtml/FontData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ export class ChtmlFontData extends FontData<
579579
padding: this.padding(HDW as ChtmlCharData, w - HDW[2]),
580580
};
581581
if (part === 'ext') {
582-
if (w === 0 && options.dx) {
582+
if (!w && options.dx) {
583583
w = 2 * options.dx - 0.06;
584584
}
585585
styles[`mjx-stretchy-h${c} > mjx-${part} > mjx-spacer`] = {

ts/output/chtml/Wrappers/mo.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ export const ChtmlMo = (function <N, T, D>(): ChtmlMoClass<N, T, D> {
299299
* @param {string[]} sv The extender parts variants
300300
* @param {N[]} dom The assembly DOM to build
301301
* @param {number} wh The delimiter's full width/height
302-
* @param {number} ext The extender character's bearing whitspace
302+
* @param {number} ext The extender character's bearing whitespace
303303
* @param {string} nl The string to use between extender characters
304304
*/
305305
protected createAssembly(
@@ -348,7 +348,7 @@ export const ChtmlMo = (function <N, T, D>(): ChtmlMoClass<N, T, D> {
348348
* @param {number} n The unicode character to use
349349
* @param {string} v The variant for the character
350350
* @param {N[]} dom The DOM assembly
351-
* @param {number} W The extendion width
351+
* @param {number} W The extension width
352352
* @param {number} Wx The width of the extender character
353353
* @param {string} nl Character to use between extenders
354354
*/

0 commit comments

Comments
 (0)