Skip to content

Remove extra whitespace inside link tags in templates - #649

Merged
akirk merged 2 commits into
mainfrom
fix/link-whitespace
Apr 8, 2026
Merged

Remove extra whitespace inside link tags in templates#649
akirk merged 2 commits into
mainfrom
fix/link-whitespace

Conversation

@akirk

@akirk akirk commented Apr 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • Remove whitespace (newlines/tabs) between <a> tags and their content in frontend templates
  • Fixes visible trailing spaces in link hover text for author names, avatars, and icon buttons
  • Affects shared header templates (used by all themes) and Mastodon-specific header/footer
Changelog
  • Automatically create a changelog entry from the details below

Type

  • Fixed

Message

Remove extra whitespace inside link tags that caused imprecise hover text in templates.

Whitespace between <a> tags and their content (newlines, tabs) was
rendered as visible spaces in browsers, causing imprecise hover text
on author names, avatars, and icon links.
@github-actions

github-actions Bot commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

Test this PR in WordPress Playground

You can test this pull request directly in WordPress Playground:

Launch WordPress Playground

This will install and activate the plugin with the changes from this PR.

@akirk
akirk force-pushed the fix/link-whitespace branch from dacd905 to 8d5f4ff Compare April 8, 2026 13:54
@akirk
akirk merged commit 45ea5de into main Apr 8, 2026
26 checks passed
@akirk
akirk deleted the fix/link-whitespace branch April 8, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant