From 251456c8002ac2456cefc5433cd1bb5d1e5251cb Mon Sep 17 00:00:00 2001 From: CoderCow Date: Sat, 29 Jun 2013 14:00:24 +0200 Subject: [PATCH] Fixed PaginationTools brackets. --- TShockAPI/PaginationTools.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/TShockAPI/PaginationTools.cs b/TShockAPI/PaginationTools.cs index 07ae22fd..47ac654d 100644 --- a/TShockAPI/PaginationTools.cs +++ b/TShockAPI/PaginationTools.cs @@ -207,12 +207,14 @@ namespace TShockAPI { string termString; if (termFormatter != null) { - try { + try + { termString = termFormatter(term); if (termString == null) continue; - } catch (Exception ex) + } + catch (Exception ex) { throw new ArgumentException( "The method represented by termFormatter has thrown an exception. See inner exception for details.", ex); @@ -226,9 +228,8 @@ namespace TShockAPI { bool goesOnNextLine = (lineBuilder.Length + termString.Length > maxCharsPerLine); if (!goesOnNextLine) { - if (lineBuilder.Length > 0) { + if (lineBuilder.Length > 0) lineBuilder.Append(separator); - } lineBuilder.Append(termString); } else