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

Bugfix: Nested list styling/numbering is fixed #35

Closed taishmanov closed 6 years ago

taishmanov commented 6 years ago

Now list style id (absNumId) is attached to list instance (numInstances stack). Therefore, list instance style will be applied for each list item. The bug: #11 - list style id had incorrect value after second nested list.

onizet commented 6 years ago

Thanks you for your PR. Will you also add the support to the start attribute as you mentionned in #11 ?

taishmanov commented 6 years ago

I tried to set the start value to StartOverrideNumberingValue, but it works only at the beginning of numbered list. I would leave that as it is now, because each html ol/ul is an independent list, whereas OpenXML list depends on levels.

After todays bugfix html2openxml covers all my needs. Thanks!