diff --git a/src/DocNet/SimpleNavigationElement.cs b/src/DocNet/SimpleNavigationElement.cs index 6c82159..81bcddf 100644 --- a/src/DocNet/SimpleNavigationElement.cs +++ b/src/DocNet/SimpleNavigationElement.cs @@ -259,18 +259,25 @@ namespace Docnet stringBuilder.AppendLine(string.Format("
  • {1}
  • ", heading.Id, heading.Name)); } - stringBuilder.AppendLine(""); + if (childContentBuilder.Length > 0) + { + stringBuilder.AppendLine("
  • "); + stringBuilder.AppendLine(string.Format(""); + stringBuilder.AppendLine("
  • "); + } return stringBuilder.ToString(); }