Skip to content

Strip CR from the MotionScore page list - #3

Merged
nnx0r merged 1 commit into
mainfrom
fix/motionscore-crlf
Aug 12, 2026
Merged

Strip CR from the MotionScore page list#3
nnx0r merged 1 commit into
mainfrom
fix/motionscore-crlf

Conversation

@nnx0r

@nnx0r nnx0r commented Aug 12, 2026

Copy link
Copy Markdown
Member

The first row of the MotionScore results table rendered broken on devilos/devilos.org#3 — the / cell split across two rows with a stray backtick, while /privacy rendered fine.

MOTIONSCORE_PAGES was stored as /\r\n/privacy, because a web-UI edit saves CRLF. The action trims each path with xargs, which does not count \r as whitespace, so page 1 stayed /\r. That CR reached the results comment, where GitHub renders it as a line break inside the code span and splits the table row. /privacy was the last line, had no CR, and rendered fine — which is exactly why only the first row broke.

Fixed in the workflow rather than in the variable, so no repo can reintroduce it by editing MOTIONSCORE_PAGES through the UI.

Verified against the exact CRLF value: /\r\n/privacy/\n/privacy, and an unset variable still falls back to /.

🤖 Generated with Claude Code

A repository variable edited in the GitHub web UI is stored with CRLF
endings, and the action trims each path with xargs, which does not treat
\r as whitespace. Every line but the last therefore kept a trailing CR,
which rode through the audit into the results comment and split the
first table row in half where GitHub rendered it as a line break.

Normalise in the workflow rather than fixing each variable, so a repo
that sets MOTIONSCORE_PAGES through the UI cannot reintroduce it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@nnx0r
nnx0r merged commit 9dcfa7d into main Aug 12, 2026
3 checks passed
@nnx0r
nnx0r deleted the fix/motionscore-crlf branch August 12, 2026 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant