typstfmt icon indicating copy to clipboard operation
typstfmt copied to clipboard

[bug] Line length checking is not accurate

Open Andrew15-5 opened this issue 1 year ago • 12 comments

This is a sub-issue from #82 (see examples there). In https://github.com/astrale-sharp/typstfmt/commit/a9e6249019111783380be88390e86af3441076ab line length can exceed the configured line limit. Specifically, if the text (content block) is used, then it can be chopped into smaller lines which won't alter the output.

EDIT by @astrale-sharp The first line of a nested block also doesn't respect max_line_length (it's unaware of it's parent)

Andrew15-5 avatar Sep 01 '23 19:09 Andrew15-5