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
321 stars 109 forks source link

Fixed an issue where styles are being removed #42

Closed ole1986 closed 5 years ago

ole1986 commented 5 years ago

When ProcessCommonAttributes is being called and contains containerStylesAttributes during the execution of BeginTag it can cause the firstChild style (in this example "w:tcW") to be removed.

Example screenshot

image

onizet commented 5 years ago

Thanks you, this is nicely spotted !