I have a macro call in my masterpage that sets the body class depending on a number of factors (depth, URL path, etc) However, I've stripped it down to find out why the macro is adding an extra space in the final html.

masterpage macro line:

```
    <body class="<umbraco:Macro Alias="Bodyclass" runat="server"></umbraco:Macro>">

```

Simplified macro:

```
@{
  var bodyClass = "";
  if ((Model.NodeTypeAlias == "WLHomePage" ) ||
     (Model.NodeTypeAlias == "WLHomeSubPage" ))
  { bodyClass = "front"; } else {
     bodyClass = "not-front";  }
    @bodyClass;
}

```

Returns:

```
    <body class="
front">

```

Note the extra space between the first doublequote of the class=" and the actual class string.