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:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user