Skip to content

HAML Formatting with long line #1373

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

Closed
Overload119 opened this issue Jul 29, 2023 · 1 comment
Closed

HAML Formatting with long line #1373

Overload119 opened this issue Jul 29, 2023 · 1 comment

Comments

@Overload119
Copy link

Overload119 commented Jul 29, 2023

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
Copy link
Member

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

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

2 participants