Skip to content

OCaml: incorrect indentation of multi-line lists #1018

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

Open
jonsterling opened this issue May 29, 2025 · 0 comments
Open

OCaml: incorrect indentation of multi-line lists #1018

jonsterling opened this issue May 29, 2025 · 0 comments

Comments

@jonsterling
Copy link
Contributor

In Topiary 0.6.0, the following formatting was accepted:

HTML.section
  [
    class_;
    data_taxon;
  ]

In Topiary 0.6.1, this has regressed to the following weirdly aligned notation:

HTML.section
  [class_;
  data_taxon;
  ]

There are two reasons why the new behaviour is undesirable:

  1. Either there should be a newline separating both square brackets from the content, or neither.
  2. The second item if the list is aligned with the bracket and not with the first item.
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

1 participant