diff --git a/modules/docs/src/Volo.Docs.Web/HtmlConverting/DocumentSectionFinder.cs b/modules/docs/src/Volo.Docs.Web/HtmlConverting/DocumentSectionFinder.cs
index f6f2c9aaee..5b1c1bfa1b 100644
--- a/modules/docs/src/Volo.Docs.Web/HtmlConverting/DocumentSectionFinder.cs
+++ b/modules/docs/src/Volo.Docs.Web/HtmlConverting/DocumentSectionFinder.cs
@@ -57,10 +57,7 @@ namespace Volo.Docs.HtmlConverting
sections.Add(key, new List() { value });
}
- var endOfSection = targetPartOfDocument.IndexOf(DocumentSectionConsts.SectionCloser, StringComparison.InvariantCulture)
- + DocumentSectionConsts.SectionCloser.Length;
-
- return FindNextSections(targetPartOfDocument.Substring(endOfSection), sections);
+ return FindNextSections(targetPartOfDocument.Substring(endOfSectionOpener), sections);
}
}
}