Skip to content

Strange formatting of long show-set rule #143

@Andrew15-5

Description

@Andrew15-5
#show heading.where(level: 2): set heading(numbering: (..n) => [#n.pos().at(1).])

with typstyle -c 80:

#show heading.where(level: 2): set heading(numbering: (
  ..n,
) => [#n.pos().at(1).])

I think it's much more readable to prefer first breaking by 1 parameter per line:

#show heading.where(level: 2): set heading(
  numbering: (..n) => [#n.pos().at(1).],
)

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