HAML Indentation Problem - "The rest of the document was indented using 2 spaces"

I would post this to the Github Gist or use Tinkerbin, but the indentation appears when I copy and paste my HAML.

Error message: Inconsistent indent: "\ t \ t" was used for indentation, but the rest of the document was indented using 2 spaces.

I sent imgur to show you where the error occurs, the browser tells me line 8, as you can see in the photo.

Feel me, this is probably an easy solution, but I'm very new to HAML.

haml indentaion issue

+3
source share
4 answers

, , , , SUBLIME

+5

SublimeText, Packages/User/Preferences.sublime-settings

"tab_size": 2,
"translate_tabs_to_spaces": true

... , .

+8

If you use Ruby on Rails, be sure to indent your application.html.haml in views / layouts

0
source

There was the same problem with moving tabs and spaces. Removed all spaces and left only tabs.

-1
source

All Articles