Skip to content

Overhang disabled if word has label #7219

Closed

Description

@bluss

Description

Typst version: 0.14.0

If I label a word like just, then punctuation overhang is disabled for the relevant comma. It's expected that adding a label doesn't change the layout.

#set par(justify: true)
Regular:
#block(stroke: 0.5pt + blue, width: 4cm)[This is a text with just, the right length.]
Label the word:
#block(stroke: 0.5pt + blue, width: 4cm)[This is a text with just,<label> the right length.]
Image

Reproduction URL

No response

Operating system

Web app

Typst version

  • I am using the latest version of Typst

Activity

  1. added
    bug
    on Oct 24, 2025
  2. added
    layout
    text
    on Nov 20, 2025
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

    buglayouttext

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions