@prettier/plugin-pug
Advanced tools
Comparing version 1.16.2 to 1.16.3
{ | ||
"name": "@prettier/plugin-pug", | ||
"version": "1.16.2", | ||
"version": "1.16.3", | ||
"description": "Prettier Pug Plugin", | ||
@@ -43,3 +43,3 @@ "main": "dist/index.js", | ||
"@types/jest": "~26.0.24", | ||
"@types/node": "~16.4.10", | ||
"@types/node": "~16.4.12", | ||
"@types/prettier": "~2.3.2", | ||
@@ -46,0 +46,0 @@ "@typescript-eslint/eslint-plugin": "~4.29.0", |
@@ -1000,4 +1000,8 @@ import type { BuiltInParserName, Options, RequiredOptions } from 'prettier'; | ||
this.indentLevel++; | ||
this.currentLineLength = result.length - 1 + 1 + this.indentString.length; // -1 for \n, +1 for non zero based | ||
logger.debug('indent', { result, indentLevel: this.indentLevel }, this.currentLineLength); | ||
this.currentLineLength = result.length - 1 + 1 + this.options.pugTabWidth; // -1 for \n, +1 for non zero based | ||
logger.debug( | ||
'indent', | ||
{ result, indentLevel: this.indentLevel, pugTabWidth: this.options.pugTabWidth }, | ||
this.currentLineLength | ||
); | ||
return result; | ||
@@ -1004,0 +1008,0 @@ } |
Sorry, the diff of this file is too big to display
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
304645
5514