wycats/handlebars.js — pull request #236 by brianreavis (2012-05-03 16:47:44+00:00)
Title: Preserve/inherit indentation level when using partials.

This fix is purely aesthetic, but I think it's pretty important (especially at [DIY](https://diy.org) where we hope to have kids reading the page source). Currently with handlebars, using partials causes indentation levels of the output to get borked. Here's the scenario:

```html

{{> head}}

```

**"head" partial:**
```html

{{title}}

```

### Current Output:
```html

{{title}}

```

### Fixed Output:

With this update, the output looks like this:
```html

{{title}}

```

The update reads the indentation level of the last line of the `content` block preceding the partial, and transfers it to every line of the partial output (except the first). Works with spaces, tabs, or a mixture of the two.

**Note:** I made sure that the modifications to `runtime.js` will not break existing precompiled templates.