-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[dotnet] Fix generated devtools inline docs (amp;) #17076
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
[dotnet] Fix generated devtools inline docs (amp;) #17076
Conversation
PR TypeBug fix Description
|
| Relevant files | |||
|---|---|---|---|
| Bug fix |
|
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR aims to fix build warnings and improve correctness of generated .NET DevTools inline documentation by ensuring special characters in protocol descriptions are properly escaped.
Changes:
- Updated
ProtocolDefinitionItem.Descriptionescaping to additionally handle&characters. - Reformatted the
Descriptiongetter into a multi-line chained replacement for readability.
third_party/dotnet/devtools/src/generator/ProtocolDefinition/ProtocolDefinitionItem.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
Fix build warnings.
💥 What does this PR do?
This pull request makes a minor update to the
ProtocolDefinitionItemclass to improve how special characters are handled in descriptions.Descriptionproperty by also replacing&with&in addition to<and>, ensuring better safety and correctness in rendered output.🔄 Types of changes