Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtsushi Eno <atsushieno@gmail.com>2005-01-11 19:00:05 +0300
committerAtsushi Eno <atsushieno@gmail.com>2005-01-11 19:00:05 +0300
commite857d44273907947913356b274801b88eb11551e (patch)
treef2730c397946049ed4b1a5b57562c9a60c5daf86 /mcs/class/System.XML/System.Xml/XmlTextWriter.cs
parent11f7e37369d38ffa3571faaf17056330556d0368 (diff)
2005-01-11 Atsushi Enomoto <atsushi@ximian.com>
* XmlTextWriter.cs : WriteComment() was outputting extraneous EOL. * XmlTextWriterTests.cs : added Indent2() to test WriteComment EOL. svn path=/trunk/mcs/; revision=38702
Diffstat (limited to 'mcs/class/System.XML/System.Xml/XmlTextWriter.cs')
-rw-r--r--mcs/class/System.XML/System.Xml/XmlTextWriter.cs2
1 files changed, 0 insertions, 2 deletions
diff --git a/mcs/class/System.XML/System.Xml/XmlTextWriter.cs b/mcs/class/System.XML/System.Xml/XmlTextWriter.cs
index 3583f6f50cc..868026f93e5 100644
--- a/mcs/class/System.XML/System.Xml/XmlTextWriter.cs
+++ b/mcs/class/System.XML/System.Xml/XmlTextWriter.cs
@@ -488,8 +488,6 @@ openElements [openElementCount - 1]).IndentingOverriden;
throw new ArgumentException ("An XML comment cannot contain \"--\" inside.");
else if (text.IndexOf("--") > 0)
throw new ArgumentException ("An XML comment cannot end with \"-\".");
- if (ws != WriteState.Content && formatting == Formatting.Indented)
- w.WriteLine ();
CheckState ();
CloseStartElement ();