M0.9: trim mixed edge spaces and dots, document the name limits (#1154)

Review: " . .name. . " kept inner dots at the edges; trim spaces and dots
in one pass. docs/cli.md and safe_file_name's comment give the 100 and
200 character limits.
This commit is contained in:
Gert Pellin
2026-10-22 21:43:52 +02:00
parent ca30791fd7
commit eb07717783
3 changed files with 8 additions and 6 deletions
+2 -2
View File
@@ -53,8 +53,8 @@ page 1 "Screens": 380 nodes, 4 top-level
after the frame (`Home.png`, `Settings.png`…); with no frames, one file per top-level layer.
The name is kept as it is, except for the characters file systems refuse (`/ \ : * ? " < > |`
and control characters), which become `_`, and leading or trailing spaces and dots, which are
dropped. The app's export replaces the same characters (there a `/` makes a folder). Two layers
with the same name get `Name 2`, `Name 3`…
dropped. A name is cut at 100 characters. The app's export replaces the same characters (there a
`/` makes a folder). Two layers with the same name get `Name 2`, `Name 3`…
- `<out>` has an image extension: one file with the given `--node`, or the whole page composited.
- `--node` takes a layer id (`12` or `0:12`) or a layer name.
- `--format fig` (or an `<out>` ending in `.fig`) writes the whole file as `.fig`, experimental: