From 6916d5fc735e0511842a554e7317767d0704740a Mon Sep 17 00:00:00 2001 From: Drew Smith Date: Tue, 17 Apr 2018 15:01:57 -0500 Subject: [PATCH] add pt unit to font-size in HTML fixes #1077 --- bits/42_sstxml.js | 2 +- xlsx.flow.js | 2 +- xlsx.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bits/42_sstxml.js b/bits/42_sstxml.js index 9119546..574fbbd 100644 --- a/bits/42_sstxml.js +++ b/bits/42_sstxml.js @@ -102,7 +102,7 @@ var parse_rs = (function parse_rs_factory() { if(font.u) style.push("text-decoration: underline;"); if(font.uval) style.push("text-underline-style:" + font.uval + ";"); - if(font.sz) style.push("font-size:" + font.sz + ";"); + if(font.sz) style.push("font-size:" + font.sz + "pt;"); if(font.outline) style.push("text-effect: outline;"); if(font.shadow) style.push("text-shadow: auto;"); intro.push(''); diff --git a/xlsx.flow.js b/xlsx.flow.js index 61909b8..f32e9f9 100644 --- a/xlsx.flow.js +++ b/xlsx.flow.js @@ -7149,7 +7149,7 @@ var parse_rs = (function parse_rs_factory() { if(font.u) style.push("text-decoration: underline;"); if(font.uval) style.push("text-underline-style:" + font.uval + ";"); - if(font.sz) style.push("font-size:" + font.sz + ";"); + if(font.sz) style.push("font-size:" + font.sz + "pt;"); if(font.outline) style.push("text-effect: outline;"); if(font.shadow) style.push("text-shadow: auto;"); intro.push(''); diff --git a/xlsx.js b/xlsx.js index b1df097..8f57535 100644 --- a/xlsx.js +++ b/xlsx.js @@ -7057,7 +7057,7 @@ var parse_rs = (function parse_rs_factory() { if(font.u) style.push("text-decoration: underline;"); if(font.uval) style.push("text-underline-style:" + font.uval + ";"); - if(font.sz) style.push("font-size:" + font.sz + ";"); + if(font.sz) style.push("font-size:" + font.sz + "pt;"); if(font.outline) style.push("text-effect: outline;"); if(font.shadow) style.push("text-shadow: auto;"); intro.push('');