aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-01-02 22:37:50 +0000
committerJustin Clark-Casey (justincc)2013-01-04 00:47:20 +0000
commit226d655f23df70f0e06217b4e8d6f8850094f83b (patch)
treee85d1fa477952d757cb87ee8821ff1af6ed15d3d
parentminor: Allow objects to be added directly to a row on a ConsoleDisplayTable r... (diff)
downloadopensim-SC_OLD-226d655f23df70f0e06217b4e8d6f8850094f83b.zip
opensim-SC_OLD-226d655f23df70f0e06217b4e8d6f8850094f83b.tar.gz
opensim-SC_OLD-226d655f23df70f0e06217b4e8d6f8850094f83b.tar.bz2
opensim-SC_OLD-226d655f23df70f0e06217b4e8d6f8850094f83b.tar.xz
Fix indenting on ConsoleDisplayTable, align indenting on "show animations" console command
-rw-r--r--OpenSim/Framework/Console/ConsoleDisplayTable.cs5
-rw-r--r--OpenSim/Region/OptionalModules/Avatar/Animations/AnimationsCommandModule.cs2
2 files changed, 4 insertions, 3 deletions
diff --git a/OpenSim/Framework/Console/ConsoleDisplayTable.cs b/OpenSim/Framework/Console/ConsoleDisplayTable.cs
index 0d22206..711a337 100644
--- a/OpenSim/Framework/Console/ConsoleDisplayTable.cs
+++ b/OpenSim/Framework/Console/ConsoleDisplayTable.cs
@@ -56,7 +56,7 @@ namespace OpenSim.Framework.Console
56 public List<ConsoleDisplayTableRow> Rows { get; private set; } 56 public List<ConsoleDisplayTableRow> Rows { get; private set; }
57 57
58 /// <summary> 58 /// <summary>
59 /// Number of spaces to indent the table. 59 /// Number of spaces to indent the whole table.
60 /// </summary> 60 /// </summary>
61 public int Indent { get; set; } 61 public int Indent { get; set; }
62 62
@@ -113,7 +113,8 @@ namespace OpenSim.Framework.Console
113 113
114 for (int i = 0; i < Columns.Count; i++) 114 for (int i = 0; i < Columns.Count; i++)
115 { 115 {
116 formatSb.Append(' ', TableSpacing); 116 if (i != 0)
117 formatSb.Append(' ', TableSpacing);
117 118
118 // Can only do left formatting for now 119 // Can only do left formatting for now
119 formatSb.AppendFormat("{{{0},-{1}}}", i, Columns[i].Width); 120 formatSb.AppendFormat("{{{0},-{1}}}", i, Columns[i].Width);
diff --git a/OpenSim/Region/OptionalModules/Avatar/Animations/AnimationsCommandModule.cs b/OpenSim/Region/OptionalModules/Avatar/Animations/AnimationsCommandModule.cs
index ffef912..e951d9e 100644
--- a/OpenSim/Region/OptionalModules/Avatar/Animations/AnimationsCommandModule.cs
+++ b/OpenSim/Region/OptionalModules/Avatar/Animations/AnimationsCommandModule.cs
@@ -149,7 +149,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Animations
149 { 149 {
150 sb.AppendFormat("Animations for {0}\n", sp.Name); 150 sb.AppendFormat("Animations for {0}\n", sp.Name);
151 151
152 ConsoleDisplayList cdl = new ConsoleDisplayList(); 152 ConsoleDisplayList cdl = new ConsoleDisplayList() { Indent = 2 };
153 ScenePresenceAnimator spa = sp.Animator; 153 ScenePresenceAnimator spa = sp.Animator;
154 AnimationSet anims = sp.Animator.Animations; 154 AnimationSet anims = sp.Animator.Animations;
155 155