diff --git a/dist/query.js b/dist/query.js index a9eb9784..23a6c41f 100644 --- a/dist/query.js +++ b/dist/query.js @@ -68274,7 +68274,7 @@ ${indent}`) + "'"; } function blockString({ comment, type, value }, ctx, onComment, onChompKeep) { const { blockQuote, commentString, lineWidth } = ctx.options; - if (!blockQuote || /\n[\t ]+$/.test(value) || /^\s*$/.test(value)) { + if (!blockQuote || /\n[\t ]+$/.test(value)) { return quotedString(value, ctx); } const indent = ctx.indent || (ctx.forceBlockIndent || containsDocumentMarker(value) ? " " : ""); diff --git a/package-lock.json b/package-lock.json index db886e49..cb78ce5a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,7 +23,7 @@ "jszip": "3.10.1", "semver": "^7.7.2", "uuid": "^11.1.0", - "yaml": "^2.8.0" + "yaml": "^2.8.1" }, "devDependencies": { "@babel/core": "^7.28.3", @@ -11294,9 +11294,10 @@ } }, "node_modules/yaml": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.0.tgz", - "integrity": "sha512-4lLa/EcQCB0cJkyts+FpIRx5G/llPxfP6VQU5KByHEhLxY3IJCH0f0Hy1MHI8sClTvsIb8qwRJ6R/ZdlDJ/leQ==", + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.1.tgz", + "integrity": "sha512-lcYcMxX2PO9XMGvAJkJ3OsNMw+/7FKes7/hgerGUYWIoWu5j/+YQqcZr5JnPZWzOsEBgMbSbiSTn/dv/69Mkpw==", + "license": "ISC", "bin": { "yaml": "bin.mjs" }, diff --git a/package.json b/package.json index fa83c509..e0390c52 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "jszip": "3.10.1", "semver": "^7.7.2", "uuid": "^11.1.0", - "yaml": "^2.8.0" + "yaml": "^2.8.1" }, "devDependencies": { "@babel/core": "^7.28.3",