Browse Source

document section now supports inner seciton

pull/2297/head
Yunus Emre Kalkan 7 years ago
parent
commit
567a78b235
  1. 5
      modules/docs/src/Volo.Docs.Web/HtmlConverting/DocumentSectionFinder.cs

5
modules/docs/src/Volo.Docs.Web/HtmlConverting/DocumentSectionFinder.cs

@ -57,10 +57,7 @@ namespace Volo.Docs.HtmlConverting
sections.Add(key, new List<string>() { value });
}
var endOfSection = targetPartOfDocument.IndexOf(DocumentSectionConsts.SectionCloser, StringComparison.InvariantCulture)
+ DocumentSectionConsts.SectionCloser.Length;
return FindNextSections(targetPartOfDocument.Substring(endOfSection), sections);
return FindNextSections(targetPartOfDocument.Substring(endOfSectionOpener), sections);
}
}
}

Loading…
Cancel
Save