Handle empty lines in code.

When content was being rendered the join() method was executing a substring on the line to remove lead indents.  If the line was empty this was result in an error.

Hope my formatting isn't a problem.  Looked like you had a mix of tabs and spaces before I started tinkering with this, but maybe Intellij made it look that way.