Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed orphaned words in newsletter titles #20337

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

kevinansfield
Copy link
Contributor

ref https://linear.app/tryghost/issue/MOM-191

  • added avoidOrphanedWords helper that replaces the last space in the supplied text with   so when the text wraps you're not left with a single word on the wrapped line
  • updated email template to use the helper for the title and excerpt

ref https://linear.app/tryghost/issue/MOM-191

- added `avoidOrphanedWords` helper that replaces the last space in the supplied text with ` ` so when the text wraps you're not left with a single word on the wrapped line
- updated email template to use the helper for the title and excerpt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant