mjmlio / mjml-syntax

Sublime package for the MJML
https://packagecontrol.io/packages/MJML-syntax
MIT License
45 stars 11 forks source link

Indentation hardcoded to 4 spaces #11

Closed joshuabaker closed 1 year ago

joshuabaker commented 5 years ago

From the snippet docs:

When writing a snippet that contains indentation, always use tabs. The tabs will be transformed into spaces when the snippet is inserted if the option translateTabsToSpaces is set to true.

ngarnier commented 5 years ago

Hey @joshuabaker, thanks for pasting a piece of the documentation but you can be a little more explicit on what the issue is please? 🙃

joshuabaker commented 5 years ago

@ngarnier Sorry. I realise in hindsight that the issue title is probably not sufficient. 😅

I indent by 2 spaces normally, however, mjml-syntax is hardcoded to intent by 4 spaces.

I think that the referenced documentation is saying that hardcoding a tab instead of spaces should automatically resolve to the user’s preference.

ngarnier commented 5 years ago

Ah indeed, thanks for reporting. Feel free to make a PR to fix this!

joshuabaker commented 5 years ago

I’d normally wade in with a PR, however, I can’t figure out how to test this locally. Will try and figure it out.