Not getting proper doc output

I’m using insertHtml of DocumentBuilder.
The html that was generated was

<p style="text-align: center;">Psdsd<br /> <br />&nbsp;</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="http://rack.1.mshcdn.com/media/ZgkyMDEyLzEyLzA0LzEzL2dvb2dsZXNvbHltLjU3OS5qcGcKcAl0aHVtYgk5NTB4NTM0IwplCWpwZw/954e5b7c/3c4/google-s-olympics-doodles-the-inside-story-88c9992489.jpg" alt="" width="160" height="56" /></p>
<p style="text-align: center;">&nbsp;</p>
<p style="text-align: center;"><br /><br /></p>
<p style="text-align: center;">&nbsp;</p>
<p style="text-align: center;">&nbsp;</p>
<p>&nbsp;</p>
<p style="text-align: center;"><br /> <br />&nbsp;</p>
<p style="text-align: center;">Psdsd</p>

So for this html , doc that was generated contain image left aligned

but if p tag prior to img tag had style as "style="text-align: center;" then it works fine

is this known issue or bug from your side?

I’m using this Version: 13.2.0 of Aspose.Words.jdk15.jar

Hi Amey,
Thanks for your inquiry. Unfortunately, ‘style’ attribute of ‘img’ tag is not yet supported by Aspose.Words. We had already logged this feature request as WORDSNET-2020 in our issue tracking system. You will be notified via this forum thread once this feature is available. As a workaround, please use the style in

tag.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-2020) have been fixed in this .NET update and this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(50)