In Aspose.Slides.Net v24.9.0:
We have the below html which causes a ‘Can’t parse coordinate’ when setting it from (ParagraphCollection) .AddFromHtml.
<p>This is a test.</p><p>This is a list of items</p><ul class="ak-ul" data-indent-level="2" style="margin-top: var(--ds-space-050,4px); margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: var(--ed--list--item-counter--padding,24px); list-style-type: circle; display: flow-root; color: rgb(23, 43, 77); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; white-space-collapse: preserve;"><li><p data-renderer-start-pos="1746" style="margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; letter-spacing: -0.005em; font-size: 1em; line-height: 1.714;">ABC 123</p></li><li style="margin-top: var(--ds-space-050,4px);"><p data-renderer-start-pos="1786" style="margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; letter-spacing: -0.005em; font-size: 1em; line-height: 1.714;">XYZ 456</p></li></ul>
The bit that seems to cause the problem is margin-top: var(–ds-space-050,4px)
The stack trace is:
at ()
at .( , String , Single )
at .( , IParagraphFormat , Single , Single , Single )
at .( , IDictionary2 , Single , Single ) at .(String , IDictionary
2 )
at .(List`1, Char[] )
at .(String )
at .(String )
at Aspose.Slides.ParagraphCollection.AddFromHtml(String text, IExternalResourceResolver resolver, String uri)
at Aspose.Slides.ParagraphCollection.AddFromHtml(String text)
This appears to be a bug.