Open xream opened 8 years ago
<template lang="pug">
.counter
</template>
becoming
<template lang="pug">
.counter
</template>
is caused by the two additional \n
wrapping the beautified code: https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/vue-beautifier.coffee#L29
This can be fixed. I recommend submitting a Pull Request and I would be happy to review and merge it.
<style lang="sass" scoped>
body color:red background-color:red</style>
might be a Pretty Diff bug: https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/vue-beautifier.coffee#L37 /cc @prettydiff
I am not able to reproduce the extra new lines around .counter
and Pretty Diff provides no support for SASS lang. SCSS, yes, but not SASS.
The extra newlines created are another bug: https://github.com/Glavin001/atom-beautify/issues/1557
I'm changing this issue to adding support for Sass to Vue, which currently uses Pretty Diff (like SCSS) however it is not expected to work properly.
Looking at https://github.com/Glavin001/atom-beautify#language-support only beautifier Sass-Convert
supports Sass beautification, so it will likely need to be used.
Description
The results of beautification are not what I expect.
Input Before Beautification
This is what the code looked like before:
Expected Output
The beautified code should have looked like this:
Actual Output
The beautified code actually looked like this:
Steps to Reproduce
Atom Beautify: Beautify Editor
Debug
Here is a link to the
debug.md
Gist: https://gist.github.com/anonymous/bf36458f0777ea046ef706b9cd09cbafChecklist
I have:
debug.md
Gist to this issue