* DocProcessor.cs: Remove any trailing newlines in XML docs. Output

between Mono/Linux and .Net/Windows is now consistent.
This commit is contained in:
the_fiddler 2009-11-03 08:48:49 +00:00
parent 74bae3e196
commit 00d966641b

View file

@ -1,4 +1,4 @@
using System; using System;
using System.IO; using System.IO;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using System.Xml; using System.Xml;
@ -51,11 +51,11 @@ namespace Bind
// The pure XmlReader is ~20x faster than the XmlTextReader. // The pure XmlReader is ~20x faster than the XmlTextReader.
doc = XmlReader.Create(new StringReader(text), settings); doc = XmlReader.Create(new StringReader(text), settings);
//doc = new XmlTextReader(new StringReader(text)); //doc = new XmlTextReader(new StringReader(text));
using (StringWriter sw = new StringWriter()) using (StringWriter sw = new StringWriter())
{ {
xslt.Transform(doc, null, sw); xslt.Transform(doc, null, sw);
return sw.ToString(); return sw.ToString().TrimEnd('\n');
} }
} }
catch (XmlException e) catch (XmlException e)