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

div标签解析生成word为什么会有空行 #85

Closed
HYliangkai opened this issue Aug 25, 2023 · 1 comment
Closed

div标签解析生成word为什么会有空行 #85

HYliangkai opened this issue Aug 25, 2023 · 1 comment

Comments

@HYliangkai
Copy link

Describe the bug
如题,使用div标签解析出来的word会在段落的前面产生一段空行,而将div改成span之后就没有空行了
请问是什么原因导致的?
image
image
image
image
求回答
poi-tl-ext version:
0.4.5

poi-tl version:
1.10.5

@draco1023
Copy link
Owner

在html中div是块状元素,span是行内元素,所以出现了这种情况,在word中段落和段落不存在嵌套的情况,我会考虑下如何避免这种不必要的换行

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