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! While you're at it, check out some resources Treehouse students have shared here.
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 trialDaniel Emery
6,772 PointsHeads 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
3 Answers
Brandon Leung
17,734 PointsThanks 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 Emmanuel
6,782 PointsThanks man!
Justin Schellenberg
Python Development Techdegree Graduate 38,298 PointsWorked 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: