Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

Beautify document deletes file content #42

Closed
nik-lampe opened this issue Oct 7, 2018 · 8 comments
Closed

Beautify document deletes file content #42

nik-lampe opened this issue Oct 7, 2018 · 8 comments

Comments

@nik-lampe
Copy link

Hello,

when I use the MJML: beautify Command on my file the whole file content gets removed.
Haven't had this issue when I used the extension about two months ago.

I'm trying to find some debug output to provide more information, but can't find any.
When I change the language type of the file to html the formatting works just fine.

Any ideas? Maybe some misconfiguration in my settings?

@attilabuti
Copy link
Owner

Hello @nik-lampe,

Can you send me your mjml.beautify configuration?

@nik-lampe
Copy link
Author

Sure, here:

"mjml.beautify": {
"indent_size": 2,
"wrap_attributes_indent_size": 2
}

@attilabuti

@attilabuti
Copy link
Owner

Hello @nik-lampe

Sorry, this is my fault I will fix it in the next update.

@lupas
Copy link

lupas commented Oct 9, 2018

Having exactly the same issue. Glad it will be fixed soon. :)

@gabrielrinaldi
Copy link

Any updates on this @attilabuti? Any workaround while we wait for an update?

@attilabuti
Copy link
Owner

Hello @gabrielrinaldi

I would like to release a new version in this week.

Workaround:
Use mj-head in your mjml files.

@gabrielrinaldi
Copy link

@attilabuti that works! The extension is really great and a huge time saver. Thanks a lot

@attilabuti
Copy link
Owner

The issue is fixed on 1.6.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants