Trim the final endline regardless of operating system.

Fixes differences between bindings generated on Windows and Linux/Mac.
This commit is contained in:
Stefanos A. 2013-10-25 16:31:26 +02:00
parent 1a1ef03396
commit 9777afdb71

View file

@ -77,7 +77,7 @@ namespace Bind
using (StringWriter sw = new StringWriter())
{
xslt.Transform(doc, null, sw);
Text = sw.ToString().TrimEnd('\n');
Text = sw.ToString().TrimEnd('\r', '\n');
return Text;
}
}