We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.2.0
3.3.3
21.7.2
export default { plugins: ["@prettier/plugin-pug"], htmlWhitespaceSensitivity: "css", printWidth: 80, arrowParens: "avoid", bracketSameLine: false, semi: true, tabWidth: 2, useTabs: false, endOfLine: "auto", trailingComma: "es5", vueIndentScriptAndStyle: false, pugAttributeSeparator: "as-needed", pugFramework: "vue", };
h2 Link: a(href="") Click
note trailing space "Link: "
h2 Link: | a(href="") Click
note trailing space is removed "Link:" and pipe doesn't have it either!
h2 Link: | a(href="") Click //- or perhaps h2 | Link: | a(href=“”) Click
note trailing space after pipe "| " - the intended behavior
OR
Probably better move the text into child pipe and insert an extra pipe for that space
Prettier alters the result of the template which is not intended. Please look at https://pugjs.org/language/plain-text.html#whitespace-control
Also it doesn't respect htmlWhitespaceSensitivity: "strict" option and still removes any extra whitespace
htmlWhitespaceSensitivity: "strict"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Plugin Version
3.2.0
Prettier Version
3.3.3
Which frameworks are affected?
Node Version
21.7.2
Which operating systems have you used?
Prettier config
Input
note trailing space "Link: "
Output or Error
note trailing space is removed "Link:" and pipe doesn't have it either!
Expected Output
note trailing space after pipe "| " - the intended behavior
OR
Probably better move the text into child pipe and insert an extra pipe for that space
Additional Context
Prettier alters the result of the template which is not intended. Please look at https://pugjs.org/language/plain-text.html#whitespace-control
Also it doesn't respect
htmlWhitespaceSensitivity: "strict"
option and still removes any extra whitespaceThe text was updated successfully, but these errors were encountered: