I am currently facing 2 issues regarding Word to HTML with Spire Doc:
1. In the case where we have blank spaces with underlines in Word, when converting to HTML, these spaces with underlines are not converted and thus missing in the HTML output.
For example:
Word text - "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.(Blank spaces with underlines here) " - It seems that when I try to underline blank spaces in this forum box, they also disappear. For testing please add 3 or 4 blank spaces with underlines.
HTML output -
- Code: Select all
<div data-wrapper="true" style="font-size:11pt"><div style="list-style-position:inside; list-style-type:none"><span style="font-size:11pt">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</span></div></div>
2. In converting from Word to HTML, with have a specific scenario where a span tag with a different font style is being added in the middle of a paragraph. This is only occurring with this specific sequence of words:
"Equipment at Tenant’s reasonable expense. Landlord will be liable to Tenant for any damage to Tenant’s Equipment"
In word, this entire paragraph is in Times new roman and size 11 text. However, once converted to HTML, the remainder of the paragraph after the "." is converted to Arial Unicode MS font:
- Code: Select all
Equipment at Tenant's reasonable expense. </span><span class="None" style="font-family:'Arial Unicode MS';"> Landlord will be liable to Tenant for any damage to Tenant's Equipment"
We are unable to reproduce this issue with any other pragraphs or texts. Only specifically with this one passage is where this bug appears.
Please note that I am using the latest hotfix version of Spire doc and I use Windows 11 64-bit operating system and my region setting is United States and English.
Thank you for the support!
Jin Kang