prettier-plugin-astro
Advanced tools
Comparing version 0.12.2 to 0.12.3
@@ -545,3 +545,3 @@ import { parse } from '@astrojs/compiler/sync'; | ||
const textLines = text.split(/[\t\n\f\r ]+/); | ||
let docs = join$1(line$1, textLines); | ||
let docs = join$1(line$1, textLines).filter((doc) => doc !== ''); | ||
if (startsWithLinebreak(text)) { | ||
@@ -694,2 +694,9 @@ docs[0] = hardline$1; | ||
} | ||
if (previousChildren && | ||
isTagLikeNode(previousChildren) && | ||
nextChildren && | ||
isTagLikeNode(nextChildren)) { | ||
childBundle[childBundleIndex].push(child); | ||
return result; | ||
} | ||
if ((!nextChildren || isTextNode(nextChildren)) && | ||
@@ -696,0 +703,0 @@ childBundle[childBundleIndex].length > 0) { |
{ | ||
"name": "prettier-plugin-astro", | ||
"version": "0.12.2", | ||
"version": "0.12.3", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "A Prettier Plugin for formatting Astro files", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
105643
826