prettier / plugin-ruby

Prettier Ruby Plugin
MIT License
1.47k stars 98 forks source link

HAML Formatting with long line #1373

Closed Overload119 closed 1 year ago

Overload119 commented 1 year ago

This does not get trimmed down - is that intended?

= text_area_tag :export_field_ecomm_email_demo_content, @saved_search.typed_configuration&.dig('list_preview', 'description_markdown'), class: "input textarea", rows: 18

It stays on a single line.

Another example: This actually make it NOT respect the printWidth.

= text_area_tag :export_field_ecomm_email_demo_content, |
  @saved_search.typed_configuration&.dig('list_preview', 'description_markdown'), |
  class: "input textarea", rows: 18
kddnewton commented 1 year ago

Yeah this is a dup of https://github.com/ruby-syntax-tree/syntax_tree-haml/issues/4. It's a known issue because of HAML's weird indentation rules.