Skip to content

Fix whitespace rendering inside <q> element example#44664

Merged
estelle merged 1 commit into
mdn:mainfrom
LD-RW:fix/q-element-whitespace-44644
Jul 8, 2026
Merged

Fix whitespace rendering inside <q> element example#44664
estelle merged 1 commit into
mdn:mainfrom
LD-RW:fix/q-element-whitespace-44644

Conversation

@LD-RW

@LD-RW LD-RW commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Fixes #44644

Problem

The example in the Examples section of Web/HTML/Reference/Elements/q places 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 start and confirmed at /en-US/docs/Web/HTML/Reference/Elements/q#examples that 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.

@LD-RW LD-RW requested a review from a team as a code owner July 8, 2026 10:48
@LD-RW LD-RW requested review from estelle and removed request for a team July 8, 2026 10:48
@github-actions github-actions Bot added Content:HTML Hypertext Markup Language docs size/s [PR only] 6-50 LoC changed labels Jul 8, 2026
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Preview URLs (1 page)

@estelle estelle left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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!

@estelle estelle merged commit b0a05c1 into mdn:main Jul 8, 2026
8 checks passed
@LD-RW LD-RW deleted the fix/q-element-whitespace-44644 branch July 8, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:HTML Hypertext Markup Language docs size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A space exists between quotation indicators, in Web/HTML/Reference/Elements/q.

3 participants