Skip to content
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

Space in Self Closing Tag Issue #1478

Closed
MacKLess opened this issue Aug 6, 2018 · 0 comments
Closed

Space in Self Closing Tag Issue #1478

MacKLess opened this issue Aug 6, 2018 · 0 comments

Comments

@MacKLess
Copy link
Collaborator

MacKLess commented Aug 6, 2018

The use of a space in self closing tags can cause incorrect indentation in following text.

Input

The code looked like this before beautification:

<div>
   <br/>
   <br />
</div>

Current Output

The code actually looked like this after beautification:

<div>
    <br/>
        <br />
</div>

Expected Output

The code should have looked like this after beautification:

<div>
   <br />
   <br />
</div>

Environment

Browser User Agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36

Language Selected:
HTML

Settings

Example:

{
  "indent_size": "4",
  "indent_char": " ",
  "max_preserve_newlines": "5",
  "preserve_newlines": true,
  "keep_array_indentation": false,
  "break_chained_methods": false,
  "indent_scripts": "normal",
  "brace_style": "collapse",
  "space_before_conditional": true,
  "unescape_strings": false,
  "jslint_happy": false,
  "end_with_newline": false,
  "wrap_line_length": "80",
  "indent_inner_html": false,
  "comma_first": false,
  "e4x": false,
  "indent_handlebars": false
}
@bitwiseman bitwiseman added this to the v1.8.x milestone Aug 6, 2018
@bitwiseman bitwiseman modified the milestones: v1.8.x, 1.8.0-rc7 Aug 14, 2018
@bitwiseman bitwiseman modified the milestones: 1.8.0-rc8, 1.8.0 Aug 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants