Skip to content

Commit

Permalink
Formatting: Break long if statement and remove old comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
soenkeschnoor committed May 21, 2014
1 parent 8cf227f commit ff7d3bb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions js/lib/beautify-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,12 +405,16 @@
this.indent_content = true;
this.traverse_whitespace();
}
} else if (tag_check === 'script' && (tag_complete.search('type') === -1 || (tag_complete.search('type') > -1 && tag_complete.search('text/javascript') > -1))) { //for later script handling
} else if (tag_check === 'script' &&
(tag_complete.search('type') === -1 ||
(tag_complete.search('type') > -1 && tag_complete.search('text/javascript') > -1))) {
if (!peek) {
this.record_tag(tag_check);
this.tag_type = 'SCRIPT';
}
} else if (tag_check === 'style' && (tag_complete.search('type') === -1 || (tag_complete.search('type') > -1 && tag_complete.search('text/css') > -1))) { //for future style handling (for now it justs uses get_content)
} else if (tag_check === 'style' &&
(tag_complete.search('type') === -1 ||
(tag_complete.search('type') > -1 && tag_complete.search('text/css') > -1))) {
if (!peek) {
this.record_tag(tag_check);
this.tag_type = 'STYLE';
Expand Down

0 comments on commit ff7d3bb

Please sign in to comment.