Skip to content

[Bug]: a publication's wrapped text can break a layer statistic token across lines #2994

Done

Description

@jgregoriorincon

A publication layout stores its texts wrapped with wrap_lines (render/report.rs). A layer statistic token (#2853) whose layer name has a space, such as {count:New York}, can be stored as {count:New and York} on two lines, and a token wider than the column is broken by character. The token is then read with a line break inside it, matches no layer and is drawn as written.

Publication wrapping must keep a statistic token whole. wrap_lines is shared with the reports, so the change needs its own tests there.

Found in the review of #2980.

Activity

  1. jgregoriorincon commented on Nov 26, 2026

    @jgregoriorincon
    ContributorAuthor

    I'll take this.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions