Skip to content

Strip CRLF characters from ADR titles#6

Merged
backnotprop merged 2 commits into
masterfrom
pickup/crlf-title-fix
Jun 18, 2026
Merged

Strip CRLF characters from ADR titles#6
backnotprop merged 2 commits into
masterfrom
pickup/crlf-title-fix

Conversation

@backnotprop

Copy link
Copy Markdown

Summary

  • strip CR/LF characters from ADR titles returned by _adr_title
  • add a regression test covering ADR files with CRLF line endings

Validation

  • manual CRLF repro showed _adr_title now returns b'1. CRLF Title'
  • make clean check

Cherry-picked from npryce#140, preserving the original author.

anenviousguest and others added 2 commits June 17, 2026 17:40
Otherwise, when parsing *.md files with windows-style line breaks (CR-LF), one of the line break characters would remain in the title, thus breaking the markup for the table of content.

(cherry picked from commit aa2de3f)
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
@backnotprop backnotprop merged commit 2d916cf into master Jun 18, 2026
@backnotprop backnotprop deleted the pickup/crlf-title-fix branch June 18, 2026 01:30
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.

2 participants