MVC remove whitespace from html on page write

In the /Views web.config changed the ViewPage to 

<host
      factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <!--<pages pageBaseType="System.Web.Mvc.WebViewPage">-->
    <pages pageBaseType="Web.Code.WhiteSpaceViewPage">
      <namespaces>