Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange formatting of long show-set rule #143

Open
Andrew15-5 opened this issue Oct 19, 2024 · 1 comment
Open

Strange formatting of long show-set rule #143

Andrew15-5 opened this issue Oct 19, 2024 · 1 comment

Comments

@Andrew15-5
Copy link

#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).],
)
@Enter-tainer
Copy link
Owner

I'm not entirely sure what's happending but it looks like this falls into a special handling for single parameter function call. I will look into it later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants