[Mono-bugs] [Bug 527421] New: XDocument.Save (string, SaveOptions) behaves incorrectly.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Aug 2 10:39:35 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=527421


           Summary: XDocument.Save (string, SaveOptions) behaves
                    incorrectly.
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.XML
        AssignedTo: atsushi at ximian.com
        ReportedBy: miguel at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=309824)
 --> (http://bugzilla.novell.com/attachment.cgi?id=309824)
Patch for System.Xml.Linq.XDocument.

According to the documentation:

XDocument.Save ("file", SaveOptions.None)

Would actually save with formatting:

http://msdn.microsoft.com/en-us/library/bb551426.aspx

Our behavior right now for indentation is the same regardless of the
SaveOptions being passed.   The following patch fixes this, but I wanted to
confirm with Atsushi that this is the right fix:

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list