Skip to content

Normalize post body_markdown newlines - #2119

Merged
Oaphi merged 6 commits into
developfrom
trichoplax/2115/normalise-newlines-in-database
Jul 30, 2026
Merged

Normalize post body_markdown newlines#2119
Oaphi merged 6 commits into
developfrom
trichoplax/2115/normalise-newlines-in-database

Conversation

@trichoplax

@trichoplax trichoplax commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Fixes #2115

Normalizes the body_markdown field in the post model so that newlines are all \n.

Applied only to this one field that was raised in #2115 for now, but let me know any other places you would also like to see this normalization, or if there's a preferred general approach. Provided your suggested approach doesn't clash with this, I'm hoping to get the specific fix merged and deployed first, then apply anything further separately once the bug is no longer holding up a question being posted.

@codecov

codecov Bot commented Jul 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.97%. Comparing base (6a8efa0) to head (ece4376).

Additional details and impacted files
Components Coverage Δ
controllers 76.79% <ø> (-0.04%) ⬇️
helpers 85.47% <ø> (ø)
jobs 77.43% <ø> (ø)
models 93.15% <100.00%> (+<0.01%) ⬆️
tasks 61.11% <ø> (ø)

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cellio cellio 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.

Tested locally with the post that was failing in prod.

@Oaphi
Oaphi merged commit 115c921 into develop Jul 30, 2026
14 checks passed
@Oaphi
Oaphi deleted the trichoplax/2115/normalise-newlines-in-database branch July 30, 2026 15:33
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.

Newlines converted to Windows style on saving post

3 participants