~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/maccore/tools/docfixer/AppleDocMerger.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright 2012 Xamarin Inc
1
2
using System;
2
3
using System.IO;
3
4
using System.Linq;
108
109
                                throw new ArgumentNullException ("options.MonodocArchive");
109
110
                        
110
111
                        if (string.IsNullOrEmpty (options.DocBase) || !Directory.Exists (options.DocBase))
111
 
                                throw new ArgumentException ("DocBase isn't valid", "options.DocBase");
 
112
                                throw new ArgumentException (string.Format ("DocBase '{0}' isn't valid", options.DocBase), "options.DocBase");
112
113
                        
113
114
                        var dbPath = Path.Combine (options.DocBase, "..", "..", "docSet.dsidx");
114
115
                        if (!File.Exists (dbPath))
354
355
                                }
355
356
                        }
356
357
                        
357
 
                        var s = new XmlWriterSettings ();
358
 
                        s.Indent = true;
359
 
                        s.Encoding = Encoding.UTF8;
360
 
                        s.OmitXmlDeclaration = true;
 
358
                        var s = new XmlWriterSettings () {
 
359
                                Indent = true,
 
360
                                Encoding = Encoding.UTF8,
 
361
                                OmitXmlDeclaration = true,
 
362
                                NewLineChars = Environment.NewLine
 
363
                        };
361
364
                        using (var output = File.CreateText (xmldocpath)){
362
365
                                var xmlw = XmlWriter.Create (output, s);
363
366
                                xmldoc.Save (xmlw);