diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2005-01-11 19:00:05 +0300 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2005-01-11 19:00:05 +0300 |
commit | e857d44273907947913356b274801b88eb11551e (patch) | |
tree | f2730c397946049ed4b1a5b57562c9a60c5daf86 /mcs/class/System.XML/System.Xml/XmlTextWriter.cs | |
parent | 11f7e37369d38ffa3571faaf17056330556d0368 (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.cs | 2 |
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 (); |