Home

BUG: Util.ToHtmlString repeats HTML header

In LinqPad 5.08.01, any use of ToHtmlString or CreateXhtmlWriter+Write causes the resulting HTML to contain a repeat of all content between
<!DOCTYPE HTML>
and
<body>

After the first body tag, you will immediately see the header repeated starting at line 207:
  </head>
<body><!DOCTYPE HTML>
<html>
  <head>
To reproduce, run this C# program query and inspect the output file.
void Main()
{
	var a = new { Hello = "Hello" };
	System.IO.File.WriteAllText(Environment.ExpandEnvironmentVariables("%HOMEPATH%\\Documents\\Linqtest.html"), Util.ToHtmlString(a));
}

Comments

Sign In or Register to comment.