Bug: indentation issues with pugExplicitDiv and pugClassNotation=attribute #405
Labels
framework: Vue
Related to the framework Vue
type: bug
Functionality that does not work as intended/expected
Plugin Version
v2.1.1
Prettier Version
v2.7.1
Which frameworks are affected?
Node Version
v16.16.0
Which operating systems have you used?
Prettier config
Input
Output or Error
Expected Output
Additional Context
When adding
"pugClassNotation": "attribute"
option and then reformatting with prettier, the indentation changed.(In the given example, the second div indentation).
However, if i first add explicit div like that manually, it works as expected:
Shouldn't
"pugClassNotation": "attribute"
option enforce"pugExplicitDiv": true
and apply it before re-indenting?I think this is not correct in pug :
(class="test")
but this what I get if I remove
"pugExplicitDiv": true
option :Before:
.test
After:
(class="test")
The text was updated successfully, but these errors were encountered: