Files: names with runs of spaces render collapsed, so the shown name is not the real name #128

Closed
opened 2026-09-25 22:17:33 +00:00 by kayg · 2 comments
Owner

Severity: low

Problem

A name with runs of spaces, " spaced out name .txt", is stored as given (the server keeps inner spaces), but every list shows "spaced out name .txt": HTML collapses white space. The owner cannot see the real name, and two names that differ only in spaces look the same. Seen in Files, the public link page and Quick Look (/home/kayg/Developer/calternal/target/breakit/run1/public-folder_1440-paper.png).

Repro

Upload a file named a b.txt (three spaces). Open its folder.

Expected

Names render with white-space: pre (or pre-wrap where they wrap) in FileCollection, FileName, the public page and the inspector, so the shown name is the real name.

Found by the break-it sweep (#117). Re-run: cd apps/web && bun run build && bun e2e/breakit.mjs --keep <dir> (script on branch job/breakit-fixes). Screenshots: /home/kayg/Developer/calternal/target/breakit (run 1 in run1/, fix checks in verify/).

**Severity:** low ## Problem A name with runs of spaces, `" spaced out name .txt"`, is stored as given (the server keeps inner spaces), but every list shows **"spaced out name .txt"**: HTML collapses white space. The owner cannot see the real name, and two names that differ only in spaces look the same. Seen in Files, the public link page and Quick Look (`/home/kayg/Developer/calternal/target/breakit/run1/public-folder_1440-paper.png`). ## Repro Upload a file named `a b.txt` (three spaces). Open its folder. ## Expected Names render with `white-space: pre` (or `pre-wrap` where they wrap) in `FileCollection`, `FileName`, the public page and the inspector, so the shown name is the real name. Found by the break-it sweep (#117). Re-run: `cd apps/web && bun run build && bun e2e/breakit.mjs --keep <dir>` (script on branch `job/breakit-fixes`). Screenshots: `/home/kayg/Developer/calternal/target/breakit` (run 1 in `run1/`, fix checks in `verify/`).
Author
Owner

The repeated-space Files row and public link checks pass. The production E2E then exposed one missed surface: Quick Look keeps the exact text in the DOM but its title style collapses repeated spaces. I changed that heading to preserve whitespace before ellipsis and am adding a computed-style check.

The repeated-space Files row and public link checks pass. The production E2E then exposed one missed surface: Quick Look keeps the exact text in the DOM but its title style collapses repeated spaces. I changed that heading to preserve whitespace before ellipsis and am adding a computed-style check.
Author
Owner

Fixed. The Files E2E passed with a filename containing leading, repeated, and trailing spaces. It checks the Files row and Quick Look preserve the exact name. The Share E2E also checks the public list and gallery caption preserve those spaces.

Fixed. The Files E2E passed with a filename containing leading, repeated, and trailing spaces. It checks the Files row and Quick Look preserve the exact name. The Share E2E also checks the public list and gallery caption preserve those spaces.
kayg closed this issue 2026-09-26 12:51:51 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal#128
No description provided.