Skip to content

Custom tab size #116

@LDemetrios

Description

@LDemetrios

I know that the canonical tabbing for Typst is "two spaces", but for a lot of users that's unusual. Thus, for all languages that recommend two-space, I (and a lot of programmers I know) use a four-space tabbing during development, and then turn it into two-space right before publishing, often automatically.

Because of that, I propose having a setting for tab size. I imagine it could be easy. As a last resort, it could be crutched as
doNormalFormatting(text).replace("\n( )+") { "\n" + " ".repeat(it.length / 2 * size) } or whatever its analogue in Rust is...

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