-
Notifications
You must be signed in to change notification settings - Fork 453
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 longer works for HTML (Angular JS) files #350
Comments
Please run command |
Jumping in on this. I have the same issue. Here's the output of running debug (minus source code): |
Atom Beautify - Debugging informationThe following debugging information was generated by Platform: darwin VersionsAtom Version: 0.200.0 Atom Beautify Version: 0.27.2 Original file to be beautifiedOriginal File Path: Original File Grammar: HTML (Angular) Original File Contents: <div class="container-fluid">
<div class="row spacer-top-lg">
<div class="col-md-10">
<h1 style="margin-top: 0;">Tracking Home</h1>
</div>
<div class="col-md-2 text-right">
<a href="">New search</a>
</div>
</div>
<div class="row spacer-top-lg spacer-bottom-lg">
<div class="col-md-4">
<div class="form-group">
<label for="search">Tracking number</label>
<div class="input-group input-group-separate">
<input type="text" name="search" class="form-control"
placeholder="Scan or enter the carrier tracking number">
<span class="input-group-btn">
<button class="btn btn-default" type="button">
<i class="fa fa-2x fa-info-circle"></i>
</button>
</span>
</div>
<span class="help-block">Enter a number to start tracking your
package details</span>
</div>
</div>
<div class="col-md-4">
</div>
</div>
<div class="row">
<div class="col-md-8">
<div class="panel panel-default">
<div class="panel-heading">
Recent packages
</div>
<table class="table">
<thead>
<tr>
<th>Received</th>
<th>Addressee</th>
<th>Package Tracking #</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="package in dashboard.recentPackages">
<td>{{package.received}}</td>
<td>{{package.addressee}}</td>
<td>{{package.tracking}}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="panel panel-default">
<div class="panel-heading">
Widget #2
</div>
<div class="panel-body">
<img src="http://placehold.it/350x250" class="img-responsive" />
</div>
</div>
</div>
<div class="col-md-4">
<div class="panel panel-default">
<div class="panel-heading">
Widget #3
</div>
<div class="panel-body">
<tabset>
<tab heading="Tab 1">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quo
facere, laborum excepturi totam ab quis aspernatur saepe vel dicta quod.
Laudantium, ipsam voluptate sed, adipisci quis eveniet consectetur beatae
corrupti!
</tab>
<tab heading="Tab 2">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quo
facere, laborum excepturi totam ab quis aspernatur saepe vel dicta quod.
Laudantium, ipsam voluptate sed, adipisci quis eveniet consectetur beatae
corrupti!
</tab>
</tabset>
</div>
</div>
</div>
</div>
</div> Beautification optionsEditor Options: {
"_default": {
"indent_size": 2,
"indent_char": " ",
"indent_with_tabs": false
}
} Config Options: {
"css": {
"preserve_newlines": true,
"indent_size": 2,
"indent_char": " ",
"selector_separator_newline": false,
"newline_between_rules": false
},
"js": {
"end_with_newline": true,
"indent_size": 2,
"indent_char": " ",
"indent_level": 0,
"indent_with_tabs": false,
"preserve_newlines": true,
"max_preserve_newlines": 10,
"space_in_paren": false,
"jslint_happy": false,
"space_after_anon_function": false,
"brace_style": "collapse",
"break_chained_methods": false,
"keep_array_indentation": false,
"keep_function_indentation": false,
"space_before_conditional": true,
"eval_code": false,
"unescape_strings": false,
"wrap_line_length": 0
},
"cs": {
"configPath": ""
},
"c": {
"configPath": ""
},
"cpp": {
"configPath": ""
},
"d": {
"configPath": ""
},
"html": {
"indent_inner_html": false,
"indent_size": 2,
"indent_char": " ",
"brace_style": "collapse",
"indent_scripts": "normal",
"wrap_line_length": 250,
"wrap_attributes": "auto",
"wrap_attributes_indent_size": 2,
"preserve_newlines": true,
"max_preserve_newlines": 10,
"unformatted": [
"a",
"sub",
"sup",
"b",
"i",
"u"
],
"end_with_newline": false
},
"java": {
"configPath": ""
},
"objectivec": {
"configPath": ""
},
"pawn": {
"configPath": ""
},
"perl": {
"perltidy_profile": ""
},
"php": {
"fixers": "",
"level": ""
},
"python": {
"max_line_length": 79,
"indent_size": 2,
"ignore": [
"E24"
]
},
"sql": {
"indent_size": 2,
"keywords": "upper",
"identifiers": "lower"
},
"vala": {
"configPath": ""
}
} Home Options: {
"_default": {
"html": {
"allowed_file_extensions": [
"htm",
"html",
"xhtml",
"shtml",
"xml",
"svg"
],
"brace_style": "collapse",
"end_with_newline": true,
"indent_char": " ",
"indent_handlebars": false,
"indent_inner_html": false,
"indent_scripts": "keep",
"indent_size": 2,
"max_preserve_newlines": 0,
"preserve_newlines": true,
"unformatted": [
"a",
"span",
"img",
"code",
"pre",
"sub",
"sup",
"em",
"strong",
"b",
"i",
"u",
"strike",
"big",
"small",
"pre",
"h1",
"h2",
"h3",
"h4",
"h5",
"h6"
],
"wrap_line_length": 0
},
"css": {
"allowed_file_extensions": [
"css",
"scss",
"sass",
"less"
],
"end_with_newline": true,
"indent_char": " ",
"indent_size": 2,
"newline_between_rules": true,
"selector_separator": " ",
"selector_separator_newline": true
},
"js": {
"allowed_file_extensions": [
"js",
"json",
"jshintrc",
"jsbeautifyrc"
],
"brace_style": "collapse",
"break_chained_methods": false,
"e4x": false,
"end_with_newline": false,
"indent_char": " ",
"indent_level": 0,
"indent_size": 2,
"indent_with_tabs": false,
"jslint_happy": false,
"keep_array_indentation": false,
"keep_function_indentation": false,
"max_preserve_newlines": 0,
"preserve_newlines": true,
"space_after_anon_function": false,
"space_before_conditional": true,
"space_in_empty_paren": false,
"space_in_paren": false,
"unescape_strings": false,
"wrap_line_length": 0
}
}
} EditorConfig Options: {
"isFulfilled": false,
"isRejected": false
} Project Options: [
{
"html": {
"allowed_file_extensions": [
"htm",
"html",
"xhtml",
"shtml",
"xml",
"svg"
],
"brace_style": "collapse",
"end_with_newline": true,
"indent_char": " ",
"indent_handlebars": false,
"indent_inner_html": false,
"indent_scripts": "keep",
"indent_size": 2,
"max_preserve_newlines": 0,
"preserve_newlines": true,
"unformatted": [
"a",
"span",
"img",
"code",
"pre",
"sub",
"sup",
"em",
"strong",
"b",
"i",
"u",
"strike",
"big",
"small",
"pre",
"h1",
"h2",
"h3",
"h4",
"h5",
"h6"
],
"wrap_line_length": 0
},
"css": {
"allowed_file_extensions": [
"css",
"scss",
"sass",
"less"
],
"end_with_newline": true,
"indent_char": " ",
"indent_size": 2,
"newline_between_rules": true,
"selector_separator": " ",
"selector_separator_newline": true
},
"js": {
"allowed_file_extensions": [
"js",
"json",
"jshintrc",
"jsbeautifyrc"
],
"brace_style": "collapse",
"break_chained_methods": false,
"e4x": false,
"end_with_newline": false,
"indent_char": " ",
"indent_level": 0,
"indent_size": 2,
"indent_with_tabs": false,
"jslint_happy": false,
"keep_array_indentation": false,
"keep_function_indentation": false,
"max_preserve_newlines": 0,
"preserve_newlines": true,
"space_after_anon_function": false,
"space_before_conditional": true,
"space_in_empty_paren": false,
"space_in_paren": false,
"unescape_strings": false,
"wrap_line_length": 0
}
},
{
"html": {
"allowed_file_extensions": [
"htm",
"html",
"xhtml",
"shtml",
"xml",
"svg"
],
"brace_style": "collapse",
"end_with_newline": true,
"indent_char": " ",
"indent_handlebars": false,
"indent_inner_html": false,
"indent_scripts": "keep",
"indent_size": 2,
"max_preserve_newlines": 0,
"preserve_newlines": true,
"unformatted": [
"a",
"span",
"img",
"code",
"pre",
"sub",
"sup",
"em",
"strong",
"b",
"i",
"u",
"strike",
"big",
"small",
"pre",
"h1",
"h2",
"h3",
"h4",
"h5",
"h6"
],
"wrap_line_length": 0
},
"css": {
"allowed_file_extensions": [
"css",
"scss",
"sass",
"less"
],
"end_with_newline": true,
"indent_char": " ",
"indent_size": 2,
"newline_between_rules": true,
"selector_separator": " ",
"selector_separator_newline": true
},
"js": {
"allowed_file_extensions": [
"js",
"json",
"jshintrc",
"jsbeautifyrc"
],
"brace_style": "collapse",
"break_chained_methods": false,
"e4x": false,
"end_with_newline": false,
"indent_char": " ",
"indent_level": 0,
"indent_size": 2,
"indent_with_tabs": false,
"jslint_happy": false,
"keep_array_indentation": false,
"keep_function_indentation": false,
"max_preserve_newlines": 0,
"preserve_newlines": true,
"space_after_anon_function": false,
"space_before_conditional": true,
"space_in_empty_paren": false,
"space_in_paren": false,
"unescape_strings": false,
"wrap_line_length": 0
}
},
{
"html": {
"allowed_file_extensions": [
"htm",
"html",
"xhtml",
"shtml",
"xml",
"svg"
],
"brace_style": "collapse",
"end_with_newline": true,
"indent_char": " ",
"indent_handlebars": false,
"indent_inner_html": false,
"indent_scripts": "keep",
"indent_size": 2,
"max_preserve_newlines": 0,
"preserve_newlines": true,
"unformatted": [
"a",
"span",
"img",
"code",
"pre",
"sub",
"sup",
"em",
"strong",
"b",
"i",
"u",
"strike",
"big",
"small",
"pre",
"h1",
"h2",
"h3",
"h4",
"h5",
"h6"
],
"wrap_line_length": 0
},
"css": {
"allowed_file_extensions": [
"css",
"scss",
"sass",
"less"
],
"end_with_newline": true,
"indent_char": " ",
"indent_size": 2,
"newline_between_rules": true,
"selector_separator": " ",
"selector_separator_newline": true
},
"js": {
"allowed_file_extensions": [
"js",
"json",
"jshintrc",
"jsbeautifyrc"
],
"brace_style": "collapse",
"break_chained_methods": false,
"e4x": false,
"end_with_newline": false,
"indent_char": " ",
"indent_level": 0,
"indent_size": 2,
"indent_with_tabs": false,
"jslint_happy": false,
"keep_array_indentation": false,
"keep_function_indentation": false,
"max_preserve_newlines": 0,
"preserve_newlines": true,
"space_after_anon_function": false,
"space_before_conditional": true,
"space_in_empty_paren": false,
"space_in_paren": false,
"unescape_strings": false,
"wrap_line_length": 0
}
},
{
"_default": {
"indent_size": 2,
"indent_char": " ",
"indent_level": 0,
"indent_with_tabs": false,
"preserve_newlines": true,
"max_preserve_newlines": 2,
"jslint_happy": false
}
},
{
"html": {
"allowed_file_extensions": [
"htm",
"html",
"xhtml",
"shtml",
"xml",
"svg"
],
"brace_style": "collapse",
"end_with_newline": true,
"indent_char": " ",
"indent_handlebars": false,
"indent_inner_html": false,
"indent_scripts": "keep",
"indent_size": 2,
"max_preserve_newlines": 0,
"preserve_newlines": true,
"unformatted": [
"a",
"span",
"img",
"code",
"pre",
"sub",
"sup",
"em",
"strong",
"b",
"i",
"u",
"strike",
"big",
"small",
"pre",
"h1",
"h2",
"h3",
"h4",
"h5",
"h6"
],
"wrap_line_length": 0
},
"css": {
"allowed_file_extensions": [
"css",
"scss",
"sass",
"less"
],
"end_with_newline": true,
"indent_char": " ",
"indent_size": 2,
"newline_between_rules": true,
"selector_separator": " ",
"selector_separator_newline": true
},
"js": {
"allowed_file_extensions": [
"js",
"json",
"jshintrc",
"jsbeautifyrc"
],
"brace_style": "collapse",
"break_chained_methods": false,
"e4x": false,
"end_with_newline": false,
"indent_char": " ",
"indent_level": 0,
"indent_size": 2,
"indent_with_tabs": false,
"jslint_happy": false,
"keep_array_indentation": false,
"keep_function_indentation": false,
"max_preserve_newlines": 0,
"preserve_newlines": true,
"space_after_anon_function": false,
"space_before_conditional": true,
"space_in_empty_paren": false,
"space_in_paren": false,
"unescape_strings": false,
"wrap_line_length": 0
}
},
{
"html": {
"allowed_file_extensions": [
"htm",
"html",
"xhtml",
"shtml",
"xml",
"svg"
],
"brace_style": "collapse",
"end_with_newline": true,
"indent_char": " ",
"indent_handlebars": false,
"indent_inner_html": false,
"indent_scripts": "keep",
"indent_size": 2,
"max_preserve_newlines": 0,
"preserve_newlines": true,
"unformatted": [
"a",
"span",
"img",
"code",
"pre",
"sub",
"sup",
"em",
"strong",
"b",
"i",
"u",
"strike",
"big",
"small",
"pre",
"h1",
"h2",
"h3",
"h4",
"h5",
"h6"
],
"wrap_line_length": 0
},
"css": {
"allowed_file_extensions": [
"css",
"scss",
"sass",
"less"
],
"end_with_newline": true,
"indent_char": " ",
"indent_size": 2,
"newline_between_rules": true,
"selector_separator": " ",
"selector_separator_newline": true
},
"js": {
"allowed_file_extensions": [
"js",
"json",
"jshintrc",
"jsbeautifyrc"
],
"brace_style": "collapse",
"break_chained_methods": false,
"e4x": false,
"end_with_newline": false,
"indent_char": " ",
"indent_level": 0,
"indent_size": 2,
"indent_with_tabs": false,
"jslint_happy": false,
"keep_array_indentation": false,
"keep_function_indentation": false,
"max_preserve_newlines": 0,
"preserve_newlines": true,
"space_after_anon_function": false,
"space_before_conditional": true,
"space_in_empty_paren": false,
"space_in_paren": false,
"unescape_strings": false,
"wrap_line_length": 0
}
},
{
"html": {
"allowed_file_extensions": [
"htm",
"html",
"xhtml",
"shtml",
"xml",
"svg"
],
"brace_style": "collapse",
"end_with_newline": true,
"indent_char": " ",
"indent_handlebars": false,
"indent_inner_html": false,
"indent_scripts": "keep",
"indent_size": 2,
"max_preserve_newlines": 0,
"preserve_newlines": true,
"unformatted": [
"a",
"span",
"img",
"code",
"pre",
"sub",
"sup",
"em",
"strong",
"b",
"i",
"u",
"strike",
"big",
"small",
"pre",
"h1",
"h2",
"h3",
"h4",
"h5",
"h6"
],
"wrap_line_length": 0
},
"css": {
"allowed_file_extensions": [
"css",
"scss",
"sass",
"less"
],
"end_with_newline": true,
"indent_char": " ",
"indent_size": 2,
"newline_between_rules": true,
"selector_separator": " ",
"selector_separator_newline": true
},
"js": {
"allowed_file_extensions": [
"js",
"json",
"jshintrc",
"jsbeautifyrc"
],
"brace_style": "collapse",
"break_chained_methods": false,
"e4x": false,
"end_with_newline": false,
"indent_char": " ",
"indent_level": 0,
"indent_size": 2,
"indent_with_tabs": false,
"jslint_happy": false,
"keep_array_indentation": false,
"keep_function_indentation": false,
"max_preserve_newlines": 0,
"preserve_newlines": true,
"space_after_anon_function": false,
"space_before_conditional": true,
"space_in_empty_paren": false,
"space_in_paren": false,
"unescape_strings": false,
"wrap_line_length": 0
}
},
{
"html": {
"allowed_file_extensions": [
"htm",
"html",
"xhtml",
"shtml",
"xml",
"svg"
],
"brace_style": "collapse",
"end_with_newline": true,
"indent_char": " ",
"indent_handlebars": false,
"indent_inner_html": false,
"indent_scripts": "keep",
"indent_size": 2,
"max_preserve_newlines": 0,
"preserve_newlines": true,
"unformatted": [
"a",
"span",
"img",
"code",
"pre",
"sub",
"sup",
"em",
"strong",
"b",
"i",
"u",
"strike",
"big",
"small",
"pre",
"h1",
"h2",
"h3",
"h4",
"h5",
"h6"
],
"wrap_line_length": 0
},
"css": {
"allowed_file_extensions": [
"css",
"scss",
"sass",
"less"
],
"end_with_newline": true,
"indent_char": " ",
"indent_size": 2,
"newline_between_rules": true,
"selector_separator": " ",
"selector_separator_newline": true
},
"js": {
"allowed_file_extensions": [
"js",
"json",
"jshintrc",
"jsbeautifyrc"
],
"brace_style": "collapse",
"break_chained_methods": false,
"e4x": false,
"end_with_newline": false,
"indent_char": " ",
"indent_level": 0,
"indent_size": 2,
"indent_with_tabs": false,
"jslint_happy": false,
"keep_array_indentation": false,
"keep_function_indentation": false,
"max_preserve_newlines": 0,
"preserve_newlines": true,
"space_after_anon_function": false,
"space_before_conditional": true,
"space_in_empty_paren": false,
"space_in_paren": false,
"unescape_strings": false,
"wrap_line_length": 0
}
}
] ResultsBeautified File Contents: null Logs:
On Wed, May 20, 2015 at 10:03 AM, Glavin Wiechert [email protected]
|
I am not sure that the grammar |
I would say that since these files, prior to .200, were beautified as HTML, If HTML worked perfectly for the past year, let's leave it as is. On Wed, May 20, 2015 at 11:28 AM, Glavin Wiechert [email protected]
|
Could you test: change your current grammar to |
Published to v0.27.3 |
Seems to work as "HTML (Angular)" and "HTML", although output is a little different for each. Before
As HTML (angular):
As HTML:
|
HTML is by default handled by js-beautify, while other languages such as Embedded JavaScript are handled by Pretty Diff ( @prettydiff ), which has excellent support for many languages. I am going to leave it under Thank you for testing and letting me know. |
Thanks for the rapid fix. On Wed, May 20, 2015 at 12:37 PM, Glavin Wiechert [email protected]
|
As of version .200, it ceased to work. Worked earlier today with .199
Gives message:
The text was updated successfully, but these errors were encountered: