Skip to content

Commit

Permalink
Treat all custom elements as inline elements.
Browse files Browse the repository at this point in the history
Addresses #1989
  • Loading branch information
lgarron committed Sep 26, 2022
1 parent 853d4ac commit 6ba9d5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/html/beautifier.js
Expand Up @@ -658,7 +658,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_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;
};
Expand Down

0 comments on commit 6ba9d5c

Please sign in to comment.