1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-19 04:52:30 +02:00

Fix § at end of line

This commit is contained in:
snowleo
2013-04-06 18:37:13 +03:00
parent 3a989f5110
commit 4ca7d404f3

View File

@@ -54,7 +54,9 @@ public class BookPager
while (pointer < lineLength) while (pointer < lineLength)
{ {
if (length >= max) Character letter = pageLine.charAt(pointer);
if (length >= max || (letter == '\u00a7' && length - 1 >= max))
{ {
tempLine = pageLine.substring(start, pointer); tempLine = pageLine.substring(start, pointer);
pageLines.add(tempLine); pageLines.add(tempLine);
@@ -62,8 +64,6 @@ public class BookPager
length = 0; length = 0;
} }
Character letter = pageLine.charAt(pointer);
if (letter == '\u00a7') if (letter == '\u00a7')
{ {
Character nextLetter = pageLine.charAt(pointer + 1); Character nextLetter = pageLine.charAt(pointer + 1);