Skip to content

fix: restore auto indent size in markup editor #174

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

Merged
merged 1 commit into from
Jun 16, 2020

Conversation

smeijer
Copy link
Member

@smeijer smeijer commented Jun 16, 2020

What:
#128 changed the behavior of attribute indentations in the markup editor. This PR restores the old behavior.

Why:
Because it looks better. Compare:

<div 
     class="container">
</div>
<textarea
          class="input">
</textarea>

with:

<div
  class="container">
</div>
<textarea
  class="input">
</textarea>

How:
Pass the multilineTagIndentPastTag: false option to CodeMirror

Checklist:

  • Tests
  • Ready to be merged

@smeijer smeijer self-assigned this Jun 16, 2020
@smeijer smeijer added the bug Something isn't working label Jun 16, 2020
@smeijer smeijer merged commit d75544b into develop Jun 16, 2020
@smeijer smeijer deleted the feature/fix-htmlmixed-indent branch June 16, 2020 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant