From 3e5f1fb994c6e4563573884112f9dfe637cbe7b5 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Tue, 3 Nov 2009 08:48:49 +0000 Subject: [PATCH] * DocProcessor.cs: Remove any trailing newlines in XML docs. Output between Mono/Linux and .Net/Windows is now consistent. --- Source/Bind/DocProcessor.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Bind/DocProcessor.cs b/Source/Bind/DocProcessor.cs index 6bcdcf0d..fcd69f9b 100644 --- a/Source/Bind/DocProcessor.cs +++ b/Source/Bind/DocProcessor.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.IO; using System.Text.RegularExpressions; using System.Xml; @@ -51,11 +51,11 @@ namespace Bind // The pure XmlReader is ~20x faster than the XmlTextReader. doc = XmlReader.Create(new StringReader(text), settings); //doc = new XmlTextReader(new StringReader(text)); - + using (StringWriter sw = new StringWriter()) { xslt.Transform(doc, null, sw); - return sw.ToString(); + return sw.ToString().TrimEnd('\n'); } } catch (XmlException e)