builder.Writeln() adds extra line

builder.Writeln() adds extra line, how to remove, thanks

Hi
Thanks for inquiry. I think that in your case you can try using builder.Write(" "). Hope this helps.
Best regards.

to add HTML table in side bookmark has to use builder.Writeln();

builder.MoveTo(bookmark.BookmarkStart.NextSibling);
builder.Writeln();

but also add extra line
i tried builder.Write(" ") html table is outside any help?

Hi

I tried the following code and all works fine.

builder.MoveTo(doc.Range.Bookmarks["myBookmark"].BookmarkStart.NextSibling);
builder.Write(" ");
string html = "<table><tr><td>Test</td><td>Test</td></tr><tr><td>Test</td><td>Test</td></tr></table>";
//Insert HTML
builder.InsertHtml(html);

Best regards.