Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration schema generator: fix missing cref inside para tag #1358

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,8 @@ private static string GetElementText(XElement element)
{
if (element.Name == "para" || element.Name == "p")
{
return $"<br/><br/>{element.Value}<br/><br/>";
var innerText = string.Join(string.Empty, element.Nodes().Select(node => GetNodeText(node)));
return $"<br/><br/>{innerText}<br/><br/>";
}

if (element.Name == "br")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ public void ShouldStripHtmlTags(string input, string expected)
[InlineData("<see cref=\"M:System.Diagnostics.Debug.Assert(bool)\"/>", "'System.Diagnostics.Debug.Assert(bool)'")]
[InlineData("<see cref=\"E:System.Windows.Input.ICommand.CanExecuteChanged\"/>", "'System.Windows.Input.ICommand.CanExecuteChanged'")]
[InlineData("<exception cref=\"T:System.InvalidOperationException\" />", "'System.InvalidOperationException'")]
[InlineData("<para><exception cref=\"T:System.InvalidOperationException\" /></para>", "'System.InvalidOperationException'")]
public void ShouldQuoteCrefAttributes(string input, string expected)
{
var summaryElement = ConvertToSummaryElement(input);
Expand Down