Remove every em and en dash; fix the EJS layout's broken comment tags #3

Merged
jared merged 1 commits from no-dashes into main 2026-11-22 19:21:05 -05:00
Owner

House style: no em or en dashes anywhere. This removes all 369 of them across 10 files. It's a visible change, so it needs your approval.

Before and after

What changes on screen

In the "Before" column, [em] stands for the old em dash and [en] for the en dash.

Where Before After
Page titles (all 4 layouts) Page [em] App Page | App (as Pulse already does)
Empty values (lt.fmt date, bytes, number, percent) [em] -
Boot line > ALL SYSTEMS NOMINAL [em] app > ALL SYSTEMS NOMINAL: app
Offline banner and toast NO NETWORK CONNECTION [em] RECONNECTING... and Connection lost [em] working offline NO NETWORK CONNECTION: RECONNECTING... and Connection lost, working offline
node and Flask 401/403 Not authenticated [em] access via... and 401 [em] Not Authenticated Not authenticated. Sign in through Authelia SSO. and 401: Not Authenticated
Demo page P1 [em] Critical, eth0 [em] MTU [em] RX, 02:00[en]04:00 P1: Critical, eth0 | MTU | RX, 02:00-04:00

Comments, docs and number ranges use hyphens.

Bug fix found along the way

node/layout.ejs opened and closed its header comment with en dashes (<%[en] ... [en]%>) instead of EJS's <%# ... %>. The layout didn't compile at all ("Invalid or unexpected token while compiling ejs"). With <%# it compiles.

Checks

  • A diff of the demo page's visible text before and after shows only the intended lines changed (the table above), with no page errors.
  • base.js and node/middleware.js pass node --check, python/auth.py compiles, and layout.ejs compiles with EJS.
  • git grep finds no em or en dashes left, in any form: the characters, HTML entities, or JS escapes.
  • .gitignore now ignores __pycache__/.

For apps that vendor this

Apps pick this up when they resync public/web_template. They should switch their own page titles to | at the same time, because lt.boot now reads the app name with split(' | '). Pulse already uses |; I'll resync it right after this merges.

The pr-assets branch only holds the screenshot. Don't merge it.

🤖 Generated with Claude Code

House style: no em or en dashes anywhere. This removes all **369** of them across 10 files. It's a visible change, so it needs your approval. ![Before and after](https://code.lotusguild.org/LotusGuild/web_template/raw/branch/pr-assets/no-dashes/web-template-dashes.png) ## What changes on screen In the "Before" column, `[em]` stands for the old em dash and `[en]` for the en dash. | Where | Before | After | |---|---|---| | Page titles (all 4 layouts) | `Page [em] App` | `Page \| App` (as Pulse already does) | | Empty values (`lt.fmt` date, bytes, number, percent) | `[em]` | `-` | | Boot line | `> ALL SYSTEMS NOMINAL [em] app` | `> ALL SYSTEMS NOMINAL: app` | | Offline banner and toast | `NO NETWORK CONNECTION [em] RECONNECTING...` and `Connection lost [em] working offline` | `NO NETWORK CONNECTION: RECONNECTING...` and `Connection lost, working offline` | | node and Flask 401/403 | `Not authenticated [em] access via...` and `401 [em] Not Authenticated` | `Not authenticated. Sign in through Authelia SSO.` and `401: Not Authenticated` | | Demo page | `P1 [em] Critical`, `eth0 [em] MTU [em] RX`, `02:00[en]04:00` | `P1: Critical`, `eth0 \| MTU \| RX`, `02:00-04:00` | Comments, docs and number ranges use hyphens. ## Bug fix found along the way `node/layout.ejs` opened and closed its header comment with en dashes (`<%[en]` ... `[en]%>`) instead of EJS's `<%#` ... `%>`. **The layout didn't compile at all** ("Invalid or unexpected token while compiling ejs"). With `<%#` it compiles. ## Checks - A diff of the demo page's visible text before and after shows only the intended lines changed (the table above), with no page errors. - `base.js` and `node/middleware.js` pass `node --check`, `python/auth.py` compiles, and `layout.ejs` compiles with EJS. - `git grep` finds no em or en dashes left, in any form: the characters, HTML entities, or JS escapes. - `.gitignore` now ignores `__pycache__/`. ## For apps that vendor this Apps pick this up when they resync `public/web_template`. They should switch their own page titles to ` | ` at the same time, because `lt.boot` now reads the app name with `split(' | ')`. Pulse already uses ` | `; I'll resync it right after this merges. The `pr-assets` branch only holds the screenshot. Don't merge it. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
jared added 1 commit 2026-11-22 19:16:03 -05:00
Remove every em and en dash; fix the EJS layout's broken comment tags
Lint / JS (eslint) (push) Successful in 12s
Lint / JS (eslint) (pull_request) Successful in 20s
b5423c0f6c
House style: no em or en dashes anywhere (369 removed across 10 files).

- Page titles use "Page | App" in all four layouts (node, php, python,
  base.html), and lt.boot reads the app name with split(' | ').
- Visible text: the empty-value placeholder is "-"; the boot line, offline
  banner and offline toast use a colon or comma; demo text uses colons,
  commas and " | " separators; the node and Flask 401/403 messages are
  reworded ("Not authenticated. Sign in through Authelia SSO.").
- Comments, docs and number ranges use hyphens.
- Bug fix: node/layout.ejs opened and closed its header comment with en
  dashes ("<%" + U+2013), which EJS does not recognize, so the layout failed
  to compile ("Invalid or unexpected token"). It now uses <%# ... %>.

Apps pick this up when they resync their vendored copy; they should switch
their own titles to " | " at the same time.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
jared force-pushed no-dashes from bd64952899 to b5423c0f6c 2026-11-22 19:16:03 -05:00 Compare
jared merged commit da4768d9b9 into main 2026-11-22 19:21:05 -05:00
jared deleted branch no-dashes 2026-11-22 19:21:08 -05:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LotusGuild/web_template#3