trilium/apps/edit-docs
Elian Doran 3b099726d1
fix(edit-docs): write exported files with LF line endings
The exported trees carry the line endings of whatever the note content
happened to hold, so a Windows run of edit-docs wrote CRLF or mixed
endings into docs/, the help HTML and the demo. Git normalizes the
difference away on staging, which leaves a working tree full of files
that read as changed until they are added.

Route every entry extractZip writes through normalizeLineEndings, which
collapses CRLF pairs and leaves a lone CR alone, the same rule Git
applies. Binary entries are returned untouched and detected the way Git
detects them: a NUL byte within the first 8000 bytes.

The demo/** rules in .gitattributes match only a root-level demo/, never
apps/edit-docs/demo/, so that tree had no eol attribute at all and is now
covered by the export instead.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-12 11:08:02 +02:00
..
demo chore(demo): update scripts to match backend scripting disabled by 2026-07-17 15:20:37 +03:00
scripts build: ship only the better-sqlite3 files an artifact actually uses 2026-07-25 18:07:02 +03:00
spec/build-checks chore(setup): remove electron remote 2026-05-24 20:25:59 +03:00
src fix(edit-docs): write exported files with LF line endings 2026-09-12 11:08:02 +02:00
package.json Update dependency electron to v44.3.0 2026-09-12 00:22:37 +00:00
tsconfig.app.json test(edit-docs): add tests for standalone 2026-05-16 18:50:12 +03:00
tsconfig.json chore(edit-docs): missing import to commons 2026-05-16 21:35:12 +03:00
vitest.build.config.mts Build edit-docs as standalone package using makeApp 2026-01-12 22:08:27 -08:00
vitest.config.mts test: set up coverage includes for all projects with tests 2026-05-29 14:32:40 +03:00