prettier-plugin-astro
Advanced tools
Comparing version 0.11.1 to 0.12.0
@@ -212,3 +212,8 @@ import { parse } from '@astrojs/compiler/sync'; | ||
function printClassNames(value) { | ||
return value.trim().split(/\s+/).join(' '); | ||
const lines = value.trim().split(/[\r\n]+/); | ||
const formattedLines = lines.map((line) => { | ||
const spaces = line.match(/^\s+/); | ||
return (spaces ? spaces[0] : '') + line.trim().split(/\s+/).join(' '); | ||
}); | ||
return formattedLines.join('\n'); | ||
} | ||
@@ -521,3 +526,3 @@ function manualDedent(input) { | ||
case 'doctype': { | ||
return ['<!DOCTYPE html>', hardline$1]; | ||
return ['<!doctype html>', hardline$1]; | ||
} | ||
@@ -524,0 +529,0 @@ case 'comment': |
{ | ||
"name": "prettier-plugin-astro", | ||
"version": "0.11.1", | ||
"version": "0.12.0", | ||
"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
104322
815