prettier-plugin-astro
Advanced tools
Comparing version 0.4.0 to 0.4.1
# prettier-plugin-astro | ||
## 0.4.1 | ||
### Patch Changes | ||
- babd8c3: Properly trim the class attribute on HTML elements | ||
## 0.4.0 | ||
@@ -4,0 +10,0 @@ |
@@ -201,2 +201,5 @@ 'use strict'; | ||
} | ||
function printClassNames(value) { | ||
return value.trim().split(/\s+/).join(' '); | ||
} | ||
function manualDedent(input) { | ||
@@ -433,3 +436,7 @@ let minTabSize = Infinity; | ||
case 'quoted': | ||
return [line$1, name, '=', quote, node.value, quote]; | ||
let value = node.value; | ||
if (node.name === 'class') { | ||
value = printClassNames(value); | ||
} | ||
return [line$1, name, '=', quote, value, quote]; | ||
case 'shorthand': | ||
@@ -436,0 +443,0 @@ return [line$1, '{', name, '}']; |
{ | ||
"name": "prettier-plugin-astro", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"type": "commonjs", | ||
@@ -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
90115
679