We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Indentation issue Converting html to word

Hi,
I’m looking for a conversion tool html to docx and I tried your product (cloud version online and .Net version). Looks almost great but there is sometimes indedation issues. Very annoying for my customer. (We have 24k document to convert)

Exemple:

image.png (68.7 KB)

I cannot attach the html files so I paste the content here:

<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">

<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 11">
<meta name=Originator content="Microsoft Word 11">
<link rel=File-List href="01000001_files/filelist.xml">
<!--[if gte mso 9]><xml>
 <o:DocumentProperties>
  <o:LastAuthor>m999dve</o:LastAuthor>
  <o:Revision>2</o:Revision>
  <o:TotalTime>0</o:TotalTime>
  <o:Created>2010-12-16T08:50:00Z</o:Created>
  <o:LastSaved>2010-12-16T08:50:00Z</o:LastSaved>
  <o:Pages>2</o:Pages>
  <o:Words>480</o:Words>
  <o:Characters>2738</o:Characters>
  <o:Company>CPC</o:Company>
  <o:Lines>22</o:Lines>
  <o:Paragraphs>6</o:Paragraphs>
  <o:CharactersWithSpaces>3212</o:CharactersWithSpaces>
  <o:Version>11.9999</o:Version>
 </o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:PunctuationKerning/>
  <w:ValidateAgainstSchemas/>
  <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
  <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
  <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
   <w:DontGrowAutofit/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:LatentStyles DefLockedState="false" LatentStyleCount="156">
 </w:LatentStyles>
</xml><![endif]-->
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0cm;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
	{margin:0cm;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Courier New";
	mso-fareast-font-family:"Times New Roman";}
@page Section1
	{size:612.0pt 792.0pt;
	margin:72.0pt 65.95pt 72.0pt 65.95pt;
	mso-header-margin:35.4pt;
	mso-footer-margin:35.4pt;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-para-margin:0cm;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";
	mso-ansi-language:#0400;
	mso-fareast-language:#0400;
	mso-bidi-language:#0400;}
</style>
<![endif]-->

<!--[if gte mso 9]><xml>
<o:CustomDocumentProperties>
<o:_dlc_DocId msdt:dt="string">MTEAMEXTRA-131-71683</o:_dlc_DocId>
<o:_dlc_DocIdItemGuid msdt:dt="string">5ecc1ac6-ec57-4acc-a664-1d3490b8db24</o:_dlc_DocIdItemGuid>
<o:_dlc_DocIdUrl msdt:dt="string">http://extranet-it.mloz.net/_layouts/15/DocIdRedir.aspx?ID=MTEAMEXTRA-131-71683, MTEAMEXTRA-131-71683</o:_dlc_DocIdUrl>
<o:display_urn_x003a_schemas-microsoft-com_x003a_office_x003a_office_x0023_Editor msdt:dt="string">System Account</o:display_urn_x003a_schemas-microsoft-com_x003a_office_x003a_office_x0023_Editor>
<o:display_urn_x003a_schemas-microsoft-com_x003a_office_x003a_office_x0023_Author msdt:dt="string">System Account</o:display_urn_x003a_schemas-microsoft-com_x003a_office_x003a_office_x0023_Author>
</o:CustomDocumentProperties>
</xml><![endif]-->
<title></title></head>

<body lang=EN-US style='tab-interval:36.0pt'>

<div class=Section1>

<p class=MsoPlainText><o:p>&nbsp;</o:p></p>

<p class=MsoPlainText><o:p>&nbsp;</o:p></p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>                     
</span>Communiqué dans la mise à jour Vade-Mecum : PRINT SN</p>

<p class=MsoPlainText><o:p>&nbsp;</o:p></p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>  
</span>+----------+----------------------------------------------------+----------+</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>   </span>!<span
style='mso-spacerun:yes'>  </span>REGLE<span style='mso-spacerun:yes'>  
</span>!<span
style='mso-spacerun:yes'>                                                   
</span>! 01000<span style='mso-spacerun:yes'>    </span>!</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>   </span>+----------+----------------------------------------------------+----------+</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>   </span>!<span
style='mso-spacerun:yes'>          </span>! IDENTIFICATION DU BENEFICIAIRE<span
style='mso-spacerun:yes'>                     </span>!<span
style='mso-spacerun:yes'>          </span>!</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>   </span>! Date :<span
style='mso-spacerun:yes'>   </span>! Classe : 0A VAL.PRIM.(FORME CHAQ.ZONE<span
style='mso-spacerun:yes'>              </span>! VERSION: !</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>   </span>! 05/10/00 !
Niveau : X MUTUALITE ET SECRET. NAT.<span
style='mso-spacerun:yes'>               </span>!<span
style='mso-spacerun:yes'>   </span>001<span style='mso-spacerun:yes'>   
</span>!</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>   </span>!<span
style='mso-spacerun:yes'>          </span>!<span style='mso-spacerun:yes'> 
</span>ANCIENNE VERSION - PERMANENTE<span
style='mso-spacerun:yes'>                     </span>!<span
style='mso-spacerun:yes'>          </span>!</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>  
</span>+----------+----------------------------------------------------+----------+</p>

<p class=MsoPlainText><o:p>&nbsp;</o:p></p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>   </span>Portée :</p>

<p class=MsoPlainText><o:p>&nbsp;</o:p></p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>            
</span>Contrôler la validité du numéro d'identification du bénéficiaire.</p>

<p class=MsoPlainText><o:p>&nbsp;</o:p></p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>   </span>Description : 15
positions numériques</p>

<p class=MsoPlainText><o:p>&nbsp;</o:p></p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>            
</span>structure</p>

<p class=MsoPlainText><o:p>&nbsp;</o:p></p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>             
</span>1<span style='mso-spacerun:yes'>       </span>union</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>              </span>2
-<span style='mso-spacerun:yes'>  </span>3<span style='mso-spacerun:yes'> 
</span>numéro de mutualité (ex-fédération\)</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>              </span>4
-<span style='mso-spacerun:yes'>  </span>5<span style='mso-spacerun:yes'> 
</span>numéro de suite mutualité (ex-mutualité\)</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>              </span>6 -
11<span style='mso-spacerun:yes'>  </span>numéro de suite de l'inscription</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>             </span>12 -
13<span style='mso-spacerun:yes'>  </span>check-digit</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>             </span>14 -
15<span style='mso-spacerun:yes'>  </span>numéro de suite du bénéficiaire</p>

<p class=MsoPlainText><o:p>&nbsp;</o:p></p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>            
</span>contrôle</p>

<p class=MsoPlainText><o:p>&nbsp;</o:p></p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>             </span>0<span
style='mso-spacerun:yes'>        </span>numéricité</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>             </span>1<span
style='mso-spacerun:yes'>      </span><span
style='mso-spacerun:yes'>  </span>l'union = 5</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>             </span>2<span
style='mso-spacerun:yes'>        </span>numéro mutualité doit être connu</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>             </span>3<span
style='mso-spacerun:yes'>        </span>numéro de suite inscription différent
de zéro</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>             </span>4<span
style='mso-spacerun:yes'>        </span>appliquer la règle 81005</p>

<p class=MsoPlainText><o:p>&nbsp;</o:p></p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>   </span>Origine:</p>

<p class=MsoPlainText><o:p>&nbsp;</o:p></p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>             </span>S.N.</p>

<p class=MsoPlainText><o:p>&nbsp;</o:p></p>

<p class=MsoPlainText><o:p>&nbsp;</o:p></p>

<p class=MsoPlainText><o:p>&nbsp;</o:p></p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>  
</span>+--------------------------------------------------------------------------+</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>   </span>! Messages :
IDENTIFICATION NUMERO BENEFICIAIRE NON CONFORME<span
style='mso-spacerun:yes'>               </span>!</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>   </span>!<span
style='mso-spacerun:yes'>                                                                         
</span>!</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>   </span>! Gravité :
E<span style='mso-spacerun:yes'>      </span>ERREUR<span
style='mso-spacerun:yes'>           </span><span
style='mso-spacerun:yes'>                                       </span>!</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>  
</span>+--------------------------------------------------------------------------+</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>   </span>! Sous-règles
associées :<span
style='mso-spacerun:yes'>                                                 
</span>!</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>   </span>!<span
style='mso-spacerun:yes'>   </span>01580<span style='mso-spacerun:yes'>  
</span>001<span style='mso-spacerun:yes'>    </span>VALIDER LE NUMERO DE
BENEFICIAIRE TH 2/1<span style='mso-spacerun:yes'>                </span>!</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>   </span>!<span
style='mso-spacerun:yes'>   </span>81005<span style='mso-spacerun:yes'>  
</span>001<span style='mso-spacerun:yes'>    </span>CALCUL DU CHECK-DIGIT DU NO
D'INSCRIPTION UNION<span style='mso-spacerun:yes'>         </span>!</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>  
</span>+--------------------------------------------------------------------------+</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>   </span>! Règles liées
:<span style='mso-spacerun:yes'>                                             
</span><span style='mso-spacerun:yes'>             </span>!</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>   </span>!<span
style='mso-spacerun:yes'>                  </span>NEANT<span
style='mso-spacerun:yes'>                                                  
</span>!</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>  
</span>+--------------------------------------------------------------------------+</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>   </span>! Zones
glossaires :<span
style='mso-spacerun:yes'>                                                      
</span>!</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>   </span>!<span
style='mso-spacerun:yes'>   </span>IDCC<span
style='mso-spacerun:yes'>           </span>CHECK DIGIT DU NO D'IDENTIF.
BEN.<span style='mso-spacerun:yes'>                       </span>!</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>   </span>!<span
style='mso-spacerun:yes'>   </span>IDFD<span
style='mso-spacerun:yes'>           </span>NUMERO MUTUALITE<span
style='mso-spacerun:yes'>                                        </span>!</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>   </span>!<span
style='mso-spacerun:yes'>   </span>IDMT<span
style='mso-spacerun:yes'>           </span>NUMERO MUTUELLE DU BENEFICIAIRE<span
style='mso-spacerun:yes'>                         </span>!</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>   </span>!<span
style='mso-spacerun:yes'>   </span>IDNM<span
style='mso-spacerun:yes'>           </span>NUMERO DE MUTUALITE DANS L'UNION
NATIONALE<span style='mso-spacerun:yes'>              </span>!</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>   </span>!<span
style='mso-spacerun:yes'>   </span>IDNO<span
style='mso-spacerun:yes'>           </span>NUMERO MATRICULE DU
BENEFICIAIRE<span style='mso-spacerun:yes'>                        </span>!</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>   </span>!<span
style='mso-spacerun:yes'>   </span>IDNS<span
style='mso-spacerun:yes'>           </span>NUMERO DE BENEFICIAIRE<span
style='mso-spacerun:yes'>                                  </span>!</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>   </span>!<span
style='mso-spacerun:yes'>   </span>IDUN<span
style='mso-spacerun:yes'>           </span>N° IDENTIFICATION UNION
NATIONALE<span style='mso-spacerun:yes'>                       </span>!</p>

<p class=MsoPlainText><span style='mso-spacerun:yes'>  
</span>+--------------------------------------------------------------------------+</p>

<p class=MsoPlainText><o:p>&nbsp;</o:p></p>

<p class=MsoPlainText><o:p>&nbsp;</o:p></p>

<p class=MsoPlainText><o:p>&nbsp;</o:p></p>

<p class=MsoPlainText><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>

thanks for helping !

@CedricT Unfortunately I cannot reproduce your issue with the provided text. Could you please attach the source html (it should be zipped) and resulting docx documents.