Skip to content

Optimized linebreaks disallow linebreak after leading whitespace #5348

Open

Description

@laurmaedje

Description

Simple linebreaks allow a linebreak after leading spaces, optimized do not.

Code Output
#set par(linebreaks: "simple")
#rect(width: 2.4cm)[
  #"    AAAAAAAAA"
]

image

#set par(linebreaks: "optimized")
#rect(width: 2.4cm)[
  #"    AAAAAAAAA"
]

image

Chrome's linebreaking (with whitespace: pre-wrap) behaves like "simple", and keeps the empty line.

Reproduction URL

No response

Operating system

No response

Typst version

  • I am using the latest version of Typst

Activity

  1. added
    bug
    layout
    text
    on Nov 1, 2024
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