private static void SaveHtmlTopic(Section section, Topic topic)
{
Document dummyDoc = new Document();
dummyDoc.RemoveAllChildren();
dummyDoc.AppendChild(dummyDoc.ImportNode(section, true, ImportFormatMode.KeepSourceFormatting));
dummyDoc.BuiltInDocumentProperties.Title = topic.Title;
HtmlSaveOptions saveOptions = new HtmlSaveOptions();
saveOptions.PrettyFormat = true;
// This is to allow headings to appear to the left of main text.
saveOptions.AllowNegativeIndent = true;
saveOptions.ExportHeadersFootersMode = ExportHeadersFootersMode.None;
dummyDoc.Save(topic.FileName, saveOptions);
}