Compare two word documents gives FORMATT changes for ListItems

J

Jagadeesh

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 in the head section of
html fiel 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 as this are unique and created dynamically
during rendering process.

any directions/suggestions to understand mso-list-id/mso-list-template-ids
will be highly appreciated.

thanks for your time and consideration
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top