View Single Post
Old 05-10-2011, 07:40 AM   #2
Jonnster
Member
Jonnster began at the beginning.
 
Posts: 16
Karma: 10
Join Date: May 2011
Device: Kindle 3
To add to this, here is the actual HTML

Input directory:
Code:
public class Garage&nbsp;<br>
{&nbsp;<br>
&nbsp; private Car[] carArray = new Car[4];&nbsp;<br>
&nbsp; ...&nbsp;<br>
<b>&nbsp; // Iterator method.&nbsp;</b><br>
&nbsp; public IEnumerator GetEnumerator()&nbsp;<br>
&nbsp; {&nbsp;<br>
&nbsp; &nbsp; foreach (Car c in carArray)&nbsp;<br>
&nbsp; &nbsp; {&nbsp;<br>
&nbsp; &nbsp; &nbsp; yield return c;&nbsp;<br>
&nbsp; &nbsp; }&nbsp;<br>
&nbsp; }&nbsp;<br>
}&nbsp;<br>

Parsed directory:
Code:
public class Garage </p>
<p>{ </p>
<p>private Car[] carArray = new Car[4]; </p>
<p>... </p>
<p><b>  // Iterator method. </b></p>
<p>public IEnumerator GetEnumerator() </p>
<p>{ </p>
<p>foreach (Car c in carArray) </p>
<p>{ </p>
<p>yield return c; </p>
<p>} </p>
<p>} </p>
<p>} </p>

So the problem is that the parsed code has had paragraph tags added to every line and it has removed all the &nbsp bits.

How can I solve this?

Update: Sorry repasted the parsed code as I had accidentally just pasted the input code twice.

Last edited by Jonnster; 05-10-2011 at 08:49 AM.
Jonnster is offline   Reply With Quote