Skip to content

No sane way to do linebreak in source file in CJK context #7624

Description

@AprilGrimoire

Description

In Typst, currently a newline is treated as whitespace no matter what language environment it's in. However, this becomes very problematic in CJK.

In space-separated languages, when a line becomes too long, the user can replace any space by a newline and get the same output. However in CJK, there are no natural newlines in paragraphs, making it impossible to insert a non-semantic newline in the source file.

Reproduction URL

https://typst.app/project/rfrFvIYflkQ7FI5W7Lykpu

Operating system

Linux

Typst version

  • I am using the latest version of Typst

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions