Skip to content

Commit

Permalink
prettier#16147: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Yana Peycheva committed Apr 29, 2024
1 parent 3597494 commit 3d1c312
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/language-html/printer-html.js
Expand Up @@ -69,8 +69,12 @@ function genericPrint(path, options, print) {
];
case "text": {
// CDATA should not be formatted
if (node.value.startsWith("<![CDATA") && node.value.endsWith("]>") && options.parser === "angular") {
return node.value
if (
node.value.startsWith("<![CDATA") &&
node.value.endsWith("]>") &&
options.parser === "angular"
) {
return node.value;
}
if (node.parent.type === "interpolation") {
// replace the trailing literalline with hardline for better readability
Expand Down

0 comments on commit 3d1c312

Please sign in to comment.