-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Description
Description
While packers usually remove new-lines and other white-spaces,
to save some bytes, some replace \n characters with an actual real new-lines.
Input
The code looked like this before beautification:
let pattern=`[
\f\r]`;
Where first line ends with white-spaces.
Expected Output
let pattern = `[ \t\n\f\r]`;
Actual Output
Almost same as input, however, since I saved with VSCode, the line-end's whitespaces are gone, like:
let pattern = `[
\f\r]`;
Steps to Reproduce
- Open https://beautifier.io/
- Paste above input into the large text-field.
- Press the "Beautify Code" button, to get result which replaces said text-field's content.
- Create a new file using VS Code.
- Copy & paste step 3's result into said file, then save.
Environment
OS: Windows
Settings
{
"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": "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": true,
"indent_empty_lines": false
}P.S. Could it be possible to make the settings past-able into the web-page?
Since I sometimes clear the cookies and such, it would be good if I later could paste settings like I did above.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels