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

no new line after self closing tag #1718

Closed
Steve-Mcl opened this issue Oct 13, 2019 · 0 comments
Closed

no new line after self closing tag #1718

Steve-Mcl opened this issue Oct 13, 2019 · 0 comments

Comments

@Steve-Mcl
Copy link

Description

no new line after self closing tag.
I have searched closed and open issues but couldnt find any issue identical to this one.

Input

The code looked like this before beautification:

<svg xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="none" x="0" y="0" viewBox="0 0 900 710" width="100%" height="100%">
  <circle id="mycircle" 
  cx="182.901" cy="91.4841" 
  style="fill:rosybrown;stroke:black;stroke-width:1px;" r="48" /></svg>

Expected Output

The code should have looked like this after beautification:

<svg xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="none" x="0" y="0" viewBox="0 0 900 710" width="100%" height="100%">
  <circle id="mycircle" cx="182.901" cy="91.4841" style="fill:rosybrown;stroke:black;stroke-width:1px;" r="48" />
</svg>

Actual Output

The code actually looked like this after beautification:

<svg xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="none" x="0" y="0" viewBox="0 0 900 710" width="100%" height="100%">
  <circle id="mycircle" cx="182.901" cy="91.4841" style="fill:rosybrown;stroke:black;stroke-width:1px;" r="48" /></svg>

Steps to Reproduce

In chrome (on windows) using the above original HTML/SVG and the below settings.

Environment

OS: Windows / Chrome

Settings

Example:

    {
                    "indent_size": "2",
                    "indent_char": " ",
                    "max_preserve_newlines": "-1",
                    "preserve_newlines": false,
                    "keep_array_indentation": false,
                    "break_chained_methods": true,
                    "indent_scripts": "normal",
                    "brace_style": "expand",
                    "space_before_conditional": true,
                    "unescape_strings": false,
                    "jslint_happy": false,
                    "end_with_newline": false,
                    "wrap_line_length": "0",
                    "indent_inner_html": false,
                    "comma_first": false,
                    "e4x": false,
                    "indent_empty_lines": false
    }
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