miette
miette copied to clipboard
bug?: labels not wrapped as expected
Labels look like they are not being wrapped correctly. I'm seeing this:
gedcomfy::error
× A problem was found in the GEDCOM file
╰─▶ gedcom::version::missing
× GEDCOM file appeared to be syntactically valid, but no version could
│ be found
╭─[1:1]
1 │ ╭─▶ 0 HEAD
2 │ ├─▶ 1 FOO X
· ╰──── this is the head record, which should contain the GEDCOM
version
3 │ 0 TRLR
╰────
help: GEDCOM version can be explicitly set using the `--force-version`
flag
I would have expected something more like this, with 'version' aligned and another dot in the left-hand margin:
· ╰──── this is the head record, which should contain the GEDCOM
. version
Do you have a minimal (or non-minimal) code example that reproduces this? It's gonna be really annoying to reproduce the bug from just this output.
No minimal right now (will try make one later) but the snapshot test here repros it currently: https://github.com/Porges/mdf/blob/abb2a05a84a0c9dfce95c69969714d0c7e49bf2d/gedcomfy/tests/snapshots/tests__golden_files%40no_trlr.ged.snap#L12
The test is defined here with this input.