onizet / html2openxml

Html2OpenXml is a small .Net library that convert simple or advanced HTML to plain OpenXml components. This program has started in 2009, initially to convert user's comments into templated Word.
MIT License
325 stars 110 forks source link

Converting "line1<div>line2<br><div>line3<br></div></div>" results in 4 lines instead of 3 lines #158

Closed PRSHGR closed 2 months ago

PRSHGR commented 2 months ago

When converting line1<div>line2<br><div>line3<br></div></div> resulting file looks like this: obraz Same HTML opened in browser looks like this: obraz Looks like <DIV> must start in new line, but when it is already in new line, then there is no need to create yet another line

HtmlTest.docx

PRSHGR commented 2 months ago

Thank you for very prompt fix.

Are there plans for new release with this fix included?

onizet commented 2 months ago

This is published now

PRSHGR commented 2 months ago

Thank you!