Skip to content

A callout label is dropped from the output rather than demoted from a heading #1332

Description

@yfedoseev

Regression against v0.3.77, found by human review of the release regression bundle. Filed separately from the ordering regressions because a token is lost, not moved.

Symptom

irs_f1040es.pdf, .text, .md and .html:

v0.3.77:  taxpayer. See *Special Rules*, later.

          #### TIP

          **Exception.** You don't have to pay…

v0.3.78:  taxpayer. See *Special Rules*, later.

          **Exception.** You don't have to pay…

It is not relocated — it is gone

TIP is genuine drawn text on page 1 at (47.2, 305.4), and again at (320.2, 649.9). The reviewer opened the file to confirm it.

The first byte-divergence between the two arms falls exactly at this point, which means the token cannot have moved earlier in the output. It is either dropped outright or pushed somewhere after its own position and lost.

What the right fix is, and is not

v0.3.77 emitted it as #### TIP — a callout label wrongly promoted to a heading. Demoting it from a heading is correct. Removing the word is not. The label is content: it marks an IRS callout box, and a reader of the extracted text loses the cue that the following sentence is an aside.

Related: #1330 covers runs being fused; this is the opposite outcome from the same area of change — a short isolated run disappearing rather than being merged.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions