```
$("#add_activity").click(function () {
            $('#activities').append('@Html.Raw(Html.Partial("MyPartial").ToHtmlString())');
        });

```

I have this bit of code that seems to be working just fine if the partial is this:

```
<tr><td>Foo</td><td><input type="text" name="bar" /></td></tr>

```

But fails to work if the partial is this

```
<tr>
     <td>
         Foo
     </td>
     <td>
        <input type="text" name="bar" />
     </td>
</tr>

```

How can I get around this??.. Having it all in one line is terrible.

Please help.