typstfmt
typstfmt copied to clipboard
Extra new line and trailing comma in `mat`
- [x] I have tested with the master version of typstfmt and not just typst-lsp
Describe the bug
Extra comma and new line inserted to long mat calls with named parameters before entries and semicolon. Almost same as #102, tested with typstfmt v0.2.9.
To Reproduce Minimal working examples:
$
mat(delim: "[", 0123456789012345678901234567890123456789012345678901234567;)
$
$
mat(delim: "[", 0123456789012345678901234567890123456789012345678901234567;0)
$
Steps to reproduce the behavior:
-
Run typstfmt once:
$ mat( delim: "[", 0123456789012345678901234567890123456789012345678901234567;, ) $ -
Rerun typstfmt
$ mat( delim: "[", 0123456789012345678901234567890123456789012345678901234567;, , ) $ -
Repeat 2. and typstfmt adds extra comma every time.