mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-24 07:13:17 +02:00
Fix § at end of line
This commit is contained in:
@@ -54,15 +54,15 @@ 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);
|
||||||
start = pointer;
|
start = pointer;
|
||||||
length = 0;
|
length = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Character letter = pageLine.charAt(pointer);
|
|
||||||
|
|
||||||
if (letter == '\u00a7')
|
if (letter == '\u00a7')
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user