Author: rgrabowski
Date: Thu Oct  6 12:08:34 2005
New Revision: 306845

URL: http://svn.apache.org/viewcvs?rev=306845&view=rev
Log:
Replaced \n character with Environment.NewLine

Modified:
    ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Scope/ErrorContext.cs

Modified: ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Scope/ErrorContext.cs
URL: 
http://svn.apache.org/viewcvs/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Scope/ErrorContext.cs?rev=306845&r1=306844&r2=306845&view=diff
==============================================================================
--- ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Scope/ErrorContext.cs (original)
+++ ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Scope/ErrorContext.cs Thu Oct  
6 12:08:34 2005
@@ -26,6 +26,7 @@
 
 #region Using
 
+using System;
 using System.Text;
 
 #endregion
@@ -110,7 +111,8 @@
                        // activity
                        if (_activity != null && _activity.Length > 0) 
                        {
-                               message.Append("\n- The error occurred while ");
+                               message.Append(Environment.NewLine);
+                               message.Append("- The error occurred while ");
                                message.Append(_activity);
                                message.Append(".");
                        }                       
@@ -118,14 +120,16 @@
                        // more info
                        if (_moreInfo != null && _moreInfo.Length > 0) 
                        {
-                               message.Append("\n- ");
+                               message.Append(Environment.NewLine);
+                               message.Append("- ");
                                message.Append(_moreInfo);
                        }
                        
                        // resource
                        if (_resource != null && _resource.Length > 0) 
                        {
-                               message.Append("\n- The error occurred in ");
+                               message.Append(Environment.NewLine);
+                               message.Append("- The error occurred in ");
                                message.Append(_resource);
                                message.Append(".");
                        }
@@ -133,7 +137,9 @@
                        // object
                        if (_objectId != null && _objectId.Length > 0)
                        {
-                               message.Append("  \n- Check the ");
+                               message.Append("  ");
+                               message.Append(Environment.NewLine);
+                               message.Append("- Check the ");
                                message.Append(_objectId);
                                message.Append(".");
                        }


Reply via email to