Hi Brett,
Thanks for your inquiry. I have tested the scenario using latest version of Aspose.Words for .NET 14.10.0 and have not found the shared issue. Please use Aspose.Words for .NET 14.10.0. I have used the following code example to test your scenario. Please check the attached output document.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.InsertHtml(@"<p>Hello World</p><p>Hello World</p>");
doc.Save(MyDir + "Out.docx");
Moreover, in version Aspose.Words (14.6.0), we introduced a
new overload method of DocumentBuilder.InsertHtml which allows you to
choose what formatting will be used as a base for inserted HTML
fragments.
The new
overload has an argument useBuilderFormatting which when is false,
formatting specified in DocumentBuilder is ignored, and formatting of
inserted text is based on default HTML formatting. In this case,
inserted text looks as in browsers.
When
useBuilderFormatting is true, formatting of inserted text is based on
formatting specified in DocumentBuilder. Note that useBuilderFormatting
chooses only base formatting of inserted text, and do not affect
formatting directly specified in the HTML fragment.
The following example illustrates the difference between the two modes:
DocumentBuilder builder = new DocumentBuilder();
builder.ParagraphFormat.LeftIndent = 72;
builder.Font.Name = "Arial";
builder.Font.Size = 24;
bool useBuilderFormatting = …
builder.InsertHtml("<b>Text</b>", useBuilderFormatting);
In
this example, if useBuilderFormatting is false, the inserted paragraph
will have no left indent and will use the ‘Times New Roman’ 12pt font,
which is the default HTML font and indent. If useBuilderFormatting is
true, the inserted paragraph will be indented by 1 inch (72 points) and
will use the ‘Arial’ 24pt font, as specified in DocumentBuilder.
However, in both cases the inserted text will be bold and red, as
specified in the HTML fragment.