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 from SharePoint to Word.
MIT License
297 stars 106 forks source link

Bad formatting on br tag #97

Closed silinca18 closed 2 weeks ago

silinca18 commented 3 years ago

When putting a br tag inside html after converting it generates 2 new lines instead of 1.

somatech-uk commented 1 year ago

@silinca18 - how did you get around this? I've been trying to add invisible hr tags or empty p tags but can't get just one line

onizet commented 2 weeks ago

I have reworked on this part and a br between 2 spans, will generate only 1 line break now