Skip to content

fix(og): keep body line breaks from breaking OG cards - #456

Merged
harlan-zw merged 1 commit into
mainfrom
fix/og-body-breaks
Oct 6, 2026
Merged

harlan-zw merged 1 commit into
mainfrom
fix/og-body-breaks

Conversation

@harlan-zw

Copy link
Copy Markdown
Collaborator

🔗 Linked issue

Related to #454

❓ Type of change

  • 📖 Documentation
  • 🐞 Bug fix
  • 👌 Enhancement
  • ✨ New feature
  • 🧹 Chore
  • ⚠️ Breaking change

📚 Description

#454 merged before this fix reached its branch. ogEvenLines honoured a line break in any text, but only the homepage title should. Collection descriptions, GitHub bios and curator notes arrive with breaks of their own. The OG card dropped everything past the second line, drew an empty row for a blank line, or kept a stray \r.

  • Only a title honours a line break now. Body text collapses its whitespace to one paragraph before the even split.
  • OgLayout and DESIGN.md described the margin field as resolving toward the lockup's dot. The clear column prevents that, so they now describe a sparse dusting.
  • The Home H1 row in COPY.md names index OG image alt again, so the copy contract checks the homepage card's alt text.

🤖 AI disclosure: Harlan Agent Kit modified this description. My AI open-source policy.

A bio, note or collection description with its own line breaks lost
everything past its second line, or drew an empty row, because the
explicit break meant for the homepage title applied to body text too.
Only titles honour a break now; body text collapses to one paragraph.

The docs claimed the margin field resolves toward the lockup's dot,
which the clear column prevents, so they now describe what the card
shows. The Home H1 row names its OG alt placement again, so the copy
contract checks the homepage card.
@harlan-zw harlan-zw added the harlan-agent-review Pull request triage requires an adversarial Review. Adding this label manually always forces one. label Oct 6, 2026
@harlan-github-agent harlan-github-agent Bot added harlan-agent-review-required Pull request triage requires an adversarial Review for this head commit. harlan-agent-running An Agent holds a Task on this issue or pull request right now. and removed harlan-agent-review Pull request triage requires an adversarial Review. Adding this label manually always forces one. labels Oct 6, 2026
@harlan-github-agent

harlan-github-agent Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

🤖 MERGED

Harlan Agent Kit posted this automated review. It is not Harlan's personal review or approval. AI open source policy. Last updated: 2026-10-06 12:03 UTC.

GitHub merged this pull request.

No material findings were recorded.

552fb18f-0fe0-4432-b6ef-dec2a00d16c3

@harlan-github-agent harlan-github-agent Bot added harlan-agent-ready The automated Review passed every gate on this head commit. and removed harlan-agent-running An Agent holds a Task on this issue or pull request right now. harlan-agent-review-required Pull request triage requires an adversarial Review for this head commit. labels Oct 6, 2026

@harlan-github-agent harlan-github-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Harlan Agent Kit posted this automated review. AI open source policy.

Automated Review: READY.

Read the Review results

@harlan-zw
harlan-zw merged commit f3d8595 into main Oct 6, 2026
7 checks passed
@harlan-github-agent harlan-github-agent Bot removed the harlan-agent-ready The automated Review passed every gate on this head commit. label Oct 6, 2026
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.

1 participant