+2009-11-23 Jonathan Pryor <jpryor@novell.com>
+
+ * Mono.Documentation/monodocer.cs: ".NET support": ensure that we
+ always get Unix line endings so that we can update documentation
+ under both Mono & .NET w/o continually changing the file due to
+ line-ending differences.
+
2009-11-06 Jonathan Pryor <jpryor@novell.com>
* Mono.Documentation/monodocer.cs: When deleting the ExtensionMethods
Error ("Unable to read XML file: {0}.", import);
}
if (r.LocalName == "doc") {
+ var xml = File.ReadAllText (import);
+ // Ensure Unix line endings
+ xml = xml.Replace ("\r", "");
slashdocs = new XmlDocument();
- slashdocs.Load (import);
+ slashdocs.LoadXml (xml);
}
else if (r.LocalName == "Libraries") {
ecmadocs = new XmlTextReader (import);
private static TextWriter OpenWrite (string path, FileMode mode)
{
- return new StreamWriter (
+ var w = new StreamWriter (
new FileStream (path, mode),
new UTF8Encoding (false)
);
+ w.NewLine = "\n";
+ return w;
}
private string[] GetAssemblyVersions ()