Fix whitespace rendering inside <q> element example#44664
Merged
Conversation
Contributor
|
Preview URLs (1 page) |
estelle
approved these changes
Jul 8, 2026
estelle
left a comment
Member
There was a problem hiding this comment.
Thank you. I approved and merged this PR as it fixes the issue. If you also want to fix the interactive example at the top of the page , that would be fantastic.
And congratulations on your first merged MDN content PR. Welcome to the team!
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.
Fixes #44644
Problem
The example in the Examples section of
Web/HTML/Reference/Elements/qplaces the quoted text on its own indented lines inside the<q>element. Because<q>renders quotation marks around its content inline, the leading and trailing whitespace renders as a visible space between each quotation mark and the text.Fix
The text now sits directly against the tag boundaries, so the rendered quotation marks hug the quoted text. The file is formatted with Prettier.
Verification
Ran
npm startand confirmed at/en-US/docs/Web/HTML/Reference/Elements/q#examplesthat no space renders inside the quotation marks.Note
The interactive example at the top of the page has the same pattern. I kept this PR scoped to what the issue reports, but I am happy to fix that too if preferred.