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
Stack empty exception when trying ApplyNumberingToHeadingParagraph #124
it seems that the listHtmlElementClasses is empty when it tries to Pop();
it is later populated in
private void ProcessHtmlChunks(HtmlEnumerator en, String endTag)
if i skip until the list is not empty, then all works fine
https://github.com/onizet/html2openxml/blob/67991d230b715fd186047ab7571651e6b1ee556c/src/Html2OpenXml/Collections/NumberingListStyleCollection.cs#L270
it seems that the listHtmlElementClasses is empty when it tries to Pop(); it is later populated in
private void ProcessHtmlChunks(HtmlEnumerator en, String endTag)
if i skip until the list is not empty, then all works fine