We notice inconsistent behavior with JoinRunsWithSameFormatting. I have outlined two cases below. The test was run using the following code:
doc = new Document(fileName);
doc.Save("C:\\temp\\bullet_1.html", SaveFormat.Html);
doc.JoinRunsWithSameFormatting();
doc.Save("C:\\temp\\bullet_2.html", SaveFormat.Html);
The before and after HTML will different for the attached two files. The difference is more visual in that bold style is either lost or gained.
I have attached two files:
temp.docx - the content here when converted to HTML shows certain text as bold which are not (for example, text beside Status: and Source Path: )WTH.zip (49.5 KB)
temp2.docx - the same document above is modified by adding content above and when converted to HTML everything under the heading Issue #1 loses bold.