handlebars-mode icon indicating copy to clipboard operation
handlebars-mode copied to clipboard

Bad indent on form

Open MikHulk opened this issue 4 years ago • 0 comments

Hi,

I don't know if this behaviour is wanted. But the children and attributes inside a <form> are indented in a strange way:

<form method='POST' action='/notes/destroy/confirm'>
<input type='hidden' name='notekey'
value='{{# if note }}{{ notekey }}{{/ if }}' />
  <p>Delete {{ note.title }} ?</p>
  <br />
  <input type='submit' value='DELETE' />
</form>

I expect this layout:

<form method='POST' action='/notes/destroy/confirm'>
  <input type='hidden'
         name='notekey'
         value='{{# if note }}{{ notekey }}{{/ if }}'>
  <p>Delete {{ note.title }} ?</p>
  <br />
  <input type='submit' value='DELETE'>
</form>

Is there any mean to change the default behavior ?

Thx

MikHulk avatar Jan 22 '20 20:01 MikHulk