Remove stray <br> tags after card-grid shortcodes - #38764
Merged
Conversation
The card-grid shortcode already provides bottom margin, making the extra manual <br>/</br> line breaks after it redundant. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
There was a problem hiding this comment.
More details
Removing the trailing break tags preserves document structure: standalone Hugo rendering kept card grids, following paragraphs, headings, and ordered lists as separate elements, while the shortcode's existing bottom margin continues to provide spacing. No diff-only behavioral regression was reproduced; the repository-wide build could not run because its external Hugo module was unavailable.
📊 Validated against 5 scenarios · Open Bits AI session
🤖 Datadog Autotest · Commit c176e36 · What is Autotest? · @DataDog review to ask questions · Any feedback? Reach out in #autotest
Contributor
domalessi
approved these changes
Aug 5, 2026
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.
What does this PR do? What is the motivation?
The card-grid shortcode already provides bottom margin, making the extra manual
<br>line breaks after it redundant. I suspect these might also have some negative impact on the plaintext build in some situations.Merge readiness
For Datadog employees:
<name>/<description>convention and include the forward slash (/). If you've already created your PR with an incorrect branch name, please rename your branch and open a fresh PR./reviewto run an automated check that catches common issues before a Documentation team member reviews your PR.AI assistance
Additional notes