View Single Post
 
Old 09-30-2009, 07:49 AM
Jagadeesh Jagadeesh is offline Windows XP Office 2007
Novice
 
Join Date: Sep 2009
Posts: 1
Jagadeesh is on a distinguished road
Question Compare two word documents gives FORMATT changes for ListItems

I compared two word documents which has same content using office COMPARE functionality, I noticed FORMATT change differences for all the lsit items in the document. I have no clue why word compare shows like this, I expect word found no difference message when I compare them.

details description: I open test.htm file in word app and save as a.doc, I again open test.htm file and save it as b.doc. When I compare a.doc and b.doc I noticed FORMATT changes for all the list items, logically there should not be any difference between docs.
below is the snippet of test.htm file
<body class="text">
<div title="_:JsrLabel" style="font-family: 'Times New Roman'; font-size: 12pt; break-before: page; ">
<div class="Section1">
<a name="Section_1"/>
<div title="_:TextSection" class="" id="Section_1"> <a name="L84214191"/>
<div title="_:List" class="JsrList" id="L84214191">
<ul class="JsrDisc">
<li style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; color: red;mso-list:l1 level1 lfo1;tab-stops:list .5in">ListItem1</li>
<li style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; color: red;mso-list:l1 level1 lfo1;tab-stops:list .5in">ListItem2</li>
<li style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; color: red;mso-list:l1 level1 lfo1;tab-stops:list .5in">ListItem3</li>
</ul>
</div> </div>
</div>
</div>
</body>
I observed that after adding below style manually with hardcoded ids in the head section of html file and repeating the process gives no difference.
@list l1
{mso-list-id:1149051274;
mso-list-template-ids:-679422818;}
....
....
</style>
...
</head>
my question is how to get or generate or find mso-list-id/mso-list-template-ids, seems these ids are unique and created dynamically during rendering process.

any directions/suggestions to style as mentioned above will be highly appreciated
thanks for your time and consideration
Reply With Quote