miette icon indicating copy to clipboard operation
miette copied to clipboard

bug?: labels not wrapped as expected

Open Porges opened this issue 6 months ago • 2 comments

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

Porges avatar Jun 01 '25 07:06 Porges

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.

cgettys-microsoft avatar Nov 15 '25 00:11 cgettys-microsoft

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.

Porges avatar Nov 18 '25 03:11 Porges