Fixed PaginationTools brackets.
This commit is contained in:
parent
863082dfc3
commit
251456c800
1 changed files with 5 additions and 4 deletions
|
|
@ -207,12 +207,14 @@ namespace TShockAPI {
|
||||||
string termString;
|
string termString;
|
||||||
if (termFormatter != null)
|
if (termFormatter != null)
|
||||||
{
|
{
|
||||||
try {
|
try
|
||||||
|
{
|
||||||
termString = termFormatter(term);
|
termString = termFormatter(term);
|
||||||
|
|
||||||
if (termString == null)
|
if (termString == null)
|
||||||
continue;
|
continue;
|
||||||
} catch (Exception ex)
|
}
|
||||||
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
throw new ArgumentException(
|
throw new ArgumentException(
|
||||||
"The method represented by termFormatter has thrown an exception. See inner exception for details.", ex);
|
"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);
|
bool goesOnNextLine = (lineBuilder.Length + termString.Length > maxCharsPerLine);
|
||||||
if (!goesOnNextLine)
|
if (!goesOnNextLine)
|
||||||
{
|
{
|
||||||
if (lineBuilder.Length > 0) {
|
if (lineBuilder.Length > 0)
|
||||||
lineBuilder.Append(separator);
|
lineBuilder.Append(separator);
|
||||||
}
|
|
||||||
lineBuilder.Append(termString);
|
lineBuilder.Append(termString);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue