diff --git a/lib/writers/lvgl/lv_table_glyf.js b/lib/writers/lvgl/lv_table_glyf.js index 5a26103..07b24fc 100644 --- a/lib/writers/lvgl/lv_table_glyf.js +++ b/lib/writers/lvgl/lv_table_glyf.js @@ -56,14 +56,14 @@ class LvGlyf extends Glyf { let result = []; this.lv_data.forEach((d, idx) => { - if (idx === 0 || d.bin.length == 0) return; + if (idx === 0 || d.bin.length === 0) return; const code_hex = d.glyph.code.toString(16).toUpperCase(); const code_str = JSON.stringify(String.fromCodePoint(d.glyph.code)); let txt = ` /* U+${code_hex.padStart(4, '0')} ${code_str} */ ${u.long_dump(d.bin, { hex: true })},`; - result.length > 0 && result.push('\n\n'); + if (result.length > 0) result.push('\n\n'); result.push(txt); });