[Mono-bugs] [Bug 70170][Wis] New - mcs /doc flag doesn't handle whitespace before element names

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 3 Dec 2004 00:41:40 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by ianm@activestate.com.

http://bugzilla.ximian.com/show_bug.cgi?id=70170

--- shadow/70170	2004-12-03 00:41:40.000000000 -0500
+++ shadow/70170.tmp.5928	2004-12-03 00:41:40.000000000 -0500
@@ -0,0 +1,61 @@
+Bug#: 70170
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: ianm@activestate.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs /doc flag doesn't handle whitespace before element names
+
+Description of Problem:
+xml doc comments of the form /// <summary> - ie with a space before the
+start tag cause non-well formed xml errors with the new /doc support in mcs. 
+
+Steps to reproduce the problem:
+1. Compile the following using mcs -doc:foo.xml test.cs
+    using System;
+
+
+
+    class Class1
+
+    {		        
+        static void Main( string[] args ){
+        }
+        ///<example>   
+        /// </example>    
+        void foo(){
+        }
+
+        /// <summary>        
+        ///</summary>     
+        public void foo2() {
+           
+        }
+ }
+
+Actual Results:
+
+ianm@linux:~/dev> ../usr/local/bin/mcs -doc:foo.xml fails-doc.cs
+fails-doc.cs(22) warning CS1570: XML comment on 'M:Class1.foo' has
+non-well-formed XML (closing element without matching opening element  Line
+1, position 11.).
+fails-doc.cs(27) warning CS1570: XML comment on 'M:Class1.ToString' has
+non-well-formed XML (unexpected end of file. Current depth is 1  Line 2,
+position 1.).
+Compilation succeeded - 2 warning(s)
+
+Expected Results:
+no warnings
+
+How often does this happen? 
+consistently