You've already forked linux-packaging-mono
Imported Upstream version 5.2.0.196
Former-commit-id: a9bb725ccbe0b8bfe8370b968c9f33f1558e1a2b
This commit is contained in:
parent
fad71374d0
commit
bdb6e93184
@@ -1,32 +0,0 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Xml;
|
||||
|
||||
namespace Mono.Documentation {
|
||||
public class Normalizer {
|
||||
|
||||
public static void Run (string [] args)
|
||||
{
|
||||
if (args == null) {
|
||||
Console.WriteLine ("normalize.exe <files>");
|
||||
Environment.Exit (0);
|
||||
}
|
||||
|
||||
foreach (string arg in args) {
|
||||
|
||||
XmlDocument document = new XmlDocument ();
|
||||
try {
|
||||
document.Load (arg);
|
||||
StreamWriter writer = new StreamWriter (arg, false, new UTF8Encoding (false));
|
||||
document.Save (writer);
|
||||
writer.Close ();
|
||||
|
||||
} catch (XmlException e) {
|
||||
Console.WriteLine (arg + " is not a wellformed XML document.");
|
||||
Console.WriteLine (e.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user