title: Razor adding extra newline character and white spaces to hyperlinks
body: <p>I'm writing a web application that parses a text file and replaces line numbers with hyperlinks so that the user can easily navigate to a specific line number of the text file they inputted. </p>
  
  <p>I'm printing a list of objects stored in the Viewbag within a .cshtml View. When I print everything as normal text, everything looks fine. For example: </p>
  
  <pre><code>--------
  Summary
  --------
  Version             23.00.00.00
  Error 007           2   at lines    (09/02/2014-06:13:32.607, 5662);
  Timeouts            0
  Reboots             1   at lines    (09/02/2014-06:12:59.900, 2)
  </code></pre>
  
  <p>But when I print the line numbers as hyperlinks, this happens:</p>
  
  <pre><code>--------
  Summary
  --------
  Version             23.00.00.00
  Error 007           2   at lines    (09/02/2014-06:13:32.607,                [5662]
  );
  Timeouts            0
  Reboots             1   at lines    (09/02/2014-06:12:59.900,                [2]
  )
  </code></pre>
  
  <p>My parser works just fine when the hyperlinks are printed as normal strings, so it looks like razor is adding extra white space before each hyperlink and an extra newline character after each hyperlink. Here is the code within the View:</p>
  
  <pre><code>&lt;pre&gt;     
          @for (int i = 0; i &lt; ViewBag.links.Count; i++)
          { 
              if (ViewBag.links[i].isHyperLink == true)
              {
                  &lt;a href="@ViewBag.links[i].url"&gt;@ViewBag.links[i].text&lt;/a&gt; //hyperlink printed
              }  
              if (ViewBag.links[i].isHyperLink == false)
              {
                  @ViewBag.links[i].text; //normal text printed
              }
          }
  &lt;/pre&gt;
  </code></pre>
  
  <p>I'm quite the asp.net/razor noob so any help is very much appreciated. Thanks for your time.</p>
  
  <p>P.S. I've put the text that is supposed to be hyperlinked within brackets. The hyperlink functionality didn't carry over well to stackoverflow.</p>
  
  <p>edit: Here is the source as requested</p>
  
  <pre><code>--------
  Summary
  --------
  Version             23.00.00.00
  Error 007           2   at lines    (09/02/2014-06:13:32.607,                &lt;a href="C:\Users\GBALL\project\project_folder\website\Home\UploadFiles~/App_Data/Uploads/bloop.txt"&gt;5662&lt;/a&gt;
  ); 
  Timeouts                0
  Reboots             1   at lines    (09/                &lt;a href="C:\Users\GBALL\project\project_folder\website\Home\UploadFiles~/App_Data/Uploads/bloop.txt"&gt;2&lt;/a&gt;
  /2014-06:12:59.900, 2)
  </code></pre>