Skip to content

Use box-like algorithm in dune fmt #1153

@bobot

Description

@bobot

The rules used by dune fmt for adding a newline doesn't take into account the size of the text. So in the following example it gives not a pretty result. It would be better to use a more dynamic box-like approach for example by using the box from Format. The example would then fit on one line.

  (with-stdout-to
   x
   (echo b)
  )

Metadata

Metadata

Assignees

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