From 4f9ffa6f0ae162b3714ada521fed20ab5e8b20fc Mon Sep 17 00:00:00 2001 From: Markus Quaritsch <markus.quaritsch@tugraz.at> Date: Thu, 18 May 2017 14:20:44 +0200 Subject: [PATCH] formatting of generated xml --- HashingCmd/Program.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/HashingCmd/Program.cs b/HashingCmd/Program.cs index d76254fff2..0f9c33b648 100644 --- a/HashingCmd/Program.cs +++ b/HashingCmd/Program.cs @@ -116,10 +116,15 @@ hashingcmd.exe if (key.KeyChar == 'n') { return; } - WriteLine("overwriting file " + Path.GetFileNameWithoutExtension(filename) + "_hashed.xml"); + WriteLine("overwriting file " + Path.GetFileName(destination)); + } else { + WriteLine("creating file " + Path.GetFileName(destination)); } var result = h.AddHash(); - var writer = new XmlTextWriter(destination, Encoding.UTF8); + var writer = new XmlTextWriter(destination, Encoding.UTF8) { + Formatting = Formatting.Indented, + Indentation = 4 + }; result.WriteTo(writer); writer.Flush(); writer.Close(); -- GitLab