typstfmt icon indicating copy to clipboard operation
typstfmt copied to clipboard

Formatter does not respect `max_line_length` directive

Open drupol opened this issue 1 year ago • 1 comments

Hi,

As promised on Discord, here's the issue regarding the max_line_length.

When configuring the max_line_length parameter to 80 characters in the configuration file, the formatter still produces lines that exceed 80 characters. IMHO, This behaviour is inconsistent with the expected output.

Example:

- Runnability: A researcher using any machine is able to re-run an experiment and obtain constant results

Is formatted into:

- Runnability: A researcher using any machine is able to re-run an experiment and
  obtain constant results

And the line starting with - Runnability:... is greater than 80 chars.

drupol avatar Oct 31 '23 07:10 drupol