js-beautify icon indicating copy to clipboard operation
js-beautify copied to clipboard

Text after <div> not going to new line

Open glassesUSA opened this issue 3 years ago • 0 comments

Description

Input

The code looked like this before beautification:

<div class="banana">test
    <br>Hello world</div>

Expected Output

The code should have looked like this after beautification:

<div class="banana">
test<br>Hello world
</div>

Actual Output

The code actually looked like this after beautification:

<div class="banana">test <br>Hello world</div>

Environment

OS: MacOS

Settings

Example:

{
  "indent_size": "4",
  "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": true,
  "end_with_newline": true,
  "wrap_line_length": "0",
  "indent_inner_html": false,
  "comma_first": false,
  "e4x": true,
  "indent_empty_lines": false
}

glassesUSA avatar Dec 16 '21 15:12 glassesUSA