Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

模板模式下,使用span标签定义的粗体字体错乱 #367

Open
RangoZhao opened this issue Apr 21, 2022 · 1 comment
Open

模板模式下,使用span标签定义的粗体字体错乱 #367

RangoZhao opened this issue Apr 21, 2022 · 1 comment

Comments

@RangoZhao
Copy link

RangoZhao commented Apr 21, 2022

Bug描述
在td标签内,加入span标签,并对span包裹的文字进行自定义格式。当使用style:font-weight:bold时,出现非被标记的文字加粗。

MyExcel版本:3.11.4
模板构建器:FreemarkerExcelBuilder

Bug复现
按如下步骤复现(Steps to reproduce the behavior):

  1. 创建模板
  2. 在td标签内定义多个span
  3. 对多个span分别定义字体的font-weight:bold属性
  4. 出现未被定义的字体出现加粗

期望的结果
被定义的文字出现加粗

@liaochong
Copy link
Owner

版本4.1.1,使用MS office/WPS打开使用FreemarkerExcelBuilder构建的Excel,格式显示正常,请升级版本测试,如仍有问题请截图以及提供对应的模板文件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants