Skip to content

Extra space is added when a line is broken at the beginning of an inline equation #4278

@Victor-Boone

Description

@Victor-Boone

Description

The issue is especially visible when paragraphs are justified.
If a line breaks just before an inline equation, a extra blank space is added.

The following code:

#set page(width: 10cm, margin: (left: 1cm, right:1cm))
#set par(justify: true)

#lorem(10)
#lorem(5) aaaaa $a = c + b$ 
#lorem(10)

is rendered as (a line has been added to make it more apparent):

align-issue

Reproduction URL

No response

Operating system

Web app

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglayoutRelated to the layout category, which is about composing, positioning, etc.textRelated to the text category, which is all about text handling, shaping, etc.urgentShould be fixed before the next release.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions