Skip to content

Commit

Permalink
no leading whitespace for {{> body}}
Browse files Browse the repository at this point in the history
  • Loading branch information
desandro committed Jan 28, 2015
1 parent 00b0936 commit 268d6d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ pre, code {
pre {
padding: 10px;
border-radius: 6px;
overflow-x: auto;
}

code {
Expand Down
4 changes: 3 additions & 1 deletion templates/page.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
<h1 class="page-title">{{page.title}}</h1>
{{/if}}

{{> body}}
{{! no leading whitespace because handlebars preserves it, messes with code blocks
https://github.com/wycats/handlebars.js/issues/858 }}
{{> body}}
</div>
</div>

Expand Down

0 comments on commit 268d6d2

Please sign in to comment.