mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-76921 atto_html: Upgrade JS Beautify to 1.14.7
This commit is contained in:
parent
12a8176926
commit
4ad4d9287c
5 changed files with 5 additions and 5 deletions
|
@ -12,7 +12,7 @@
|
||||||
<location>yui/src/beautify</location>
|
<location>yui/src/beautify</location>
|
||||||
<name>jsbeautify</name>
|
<name>jsbeautify</name>
|
||||||
<description>Beautify HTML code in Atto.</description>
|
<description>Beautify HTML code in Atto.</description>
|
||||||
<version>1.14.6</version>
|
<version>1.14.7</version>
|
||||||
<license>MIT</license>
|
<license>MIT</license>
|
||||||
<repository>https://github.com/beautify-web/js-beautify</repository>
|
<repository>https://github.com/beautify-web/js-beautify</repository>
|
||||||
<copyrights>
|
<copyrights>
|
||||||
|
|
|
@ -8119,7 +8119,7 @@ Beautifier.prototype._get_tag_open_token = function(raw_token) { //function to g
|
||||||
|
|
||||||
parser_token.is_unformatted = !parser_token.tag_complete && in_array(parser_token.tag_check, this._options.unformatted);
|
parser_token.is_unformatted = !parser_token.tag_complete && in_array(parser_token.tag_check, this._options.unformatted);
|
||||||
parser_token.is_content_unformatted = !parser_token.is_empty_element && in_array(parser_token.tag_check, this._options.content_unformatted);
|
parser_token.is_content_unformatted = !parser_token.is_empty_element && in_array(parser_token.tag_check, this._options.content_unformatted);
|
||||||
parser_token.is_inline_element = in_array(parser_token.tag_name, this._options.inline) || parser_token.tag_start_char === '{';
|
parser_token.is_inline_element = in_array(parser_token.tag_name, this._options.inline) || parser_token.tag_name.includes("-") || parser_token.tag_start_char === '{';
|
||||||
|
|
||||||
return parser_token;
|
return parser_token;
|
||||||
};
|
};
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -8119,7 +8119,7 @@ Beautifier.prototype._get_tag_open_token = function(raw_token) { //function to g
|
||||||
|
|
||||||
parser_token.is_unformatted = !parser_token.tag_complete && in_array(parser_token.tag_check, this._options.unformatted);
|
parser_token.is_unformatted = !parser_token.tag_complete && in_array(parser_token.tag_check, this._options.unformatted);
|
||||||
parser_token.is_content_unformatted = !parser_token.is_empty_element && in_array(parser_token.tag_check, this._options.content_unformatted);
|
parser_token.is_content_unformatted = !parser_token.is_empty_element && in_array(parser_token.tag_check, this._options.content_unformatted);
|
||||||
parser_token.is_inline_element = in_array(parser_token.tag_name, this._options.inline) || parser_token.tag_start_char === '{';
|
parser_token.is_inline_element = in_array(parser_token.tag_name, this._options.inline) || parser_token.tag_name.includes("-") || parser_token.tag_start_char === '{';
|
||||||
|
|
||||||
return parser_token;
|
return parser_token;
|
||||||
};
|
};
|
||||||
|
|
|
@ -2406,7 +2406,7 @@ Beautifier.prototype._get_tag_open_token = function(raw_token) { //function to g
|
||||||
|
|
||||||
parser_token.is_unformatted = !parser_token.tag_complete && in_array(parser_token.tag_check, this._options.unformatted);
|
parser_token.is_unformatted = !parser_token.tag_complete && in_array(parser_token.tag_check, this._options.unformatted);
|
||||||
parser_token.is_content_unformatted = !parser_token.is_empty_element && in_array(parser_token.tag_check, this._options.content_unformatted);
|
parser_token.is_content_unformatted = !parser_token.is_empty_element && in_array(parser_token.tag_check, this._options.content_unformatted);
|
||||||
parser_token.is_inline_element = in_array(parser_token.tag_name, this._options.inline) || parser_token.tag_start_char === '{';
|
parser_token.is_inline_element = in_array(parser_token.tag_name, this._options.inline) || parser_token.tag_name.includes("-") || parser_token.tag_start_char === '{';
|
||||||
|
|
||||||
return parser_token;
|
return parser_token;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue