Repository navigation
[doc] Strip rule description when generating docs - #7032
Merged
Merged
Conversation
Contributor
|
Compared to main: (comment created at 2026-09-05 20:12:40+00:00 for 55d0d61) |
Member
|
Hey, could you do me a favor an look at #6963? It's a PR for the same file. |
Contributor
Author
|
I merged the ther PR and resolved conflicts here. |
zbynek
force-pushed
the
strip-description
branch
from
September 5, 2026 16:27
f809332 to
6e802f1
Compare
UncleOwen
requested changes
Sep 5, 2026
UncleOwen
left a comment
Member
There was a problem hiding this comment.
Everything else looks good.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe the PR
Strip leading whitespace of rule descriptions more aggressively.
Currently adding description with an indented CDATA section (done by Copilot in 9df417e, happened to me as well in my previous PR) results in invalid Markdown docs and a slightly cryptic error message:
Note that the same indentation is used elsewhere in the file, since XPath properties are less sensitive than markdown.
Skipping leading lines that are blank, not just empty, fixes the issue.
Related issues
None.
Ready?
./mvnw clean verifypasses (checked automatically by github actions)