Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Daniel Emery6,772 Points
Heads up to anyone watching this video.
After spending ~3 hours trying to figure out why I kept getting indent errors in my layout.jade file, I found out that pipes don't allow trailing whitespace with no content after them, but if you're using Sublime Text, it automatically trims trailing whitespace on all lines by default.
If you run into this problem, just set "trim_trailing_white_space_on_save" in Sublime user settings to false.
You can read more here: https://teamtreehouse.com/community/problem-with-pipes
Brandon Leung17,734 Points
Thanks for this Daniel. I was starting to go nuts trying to figure why the console kept telling me I had incorrect indenting!!
After changing that setting in Sublime, it works!
Toby Emmanuel6,782 Points
Justin SchellenbergPython Development Techdegree Graduate 38,298 Points
Worked for me too Thank you for this Daniel, If anyone uses Webstorm:JetBrains it's in
File --> Settings --> Editor --> General
Underneath other Strip Trailing spaces on save: