summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Essentials/src/com/earth2me/essentials/utils/textreader/TextInput.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/utils/textreader/TextInput.java b/Essentials/src/com/earth2me/essentials/utils/textreader/TextInput.java
index a8a8598d1..570feaa36 100644
--- a/Essentials/src/com/earth2me/essentials/utils/textreader/TextInput.java
+++ b/Essentials/src/com/earth2me/essentials/utils/textreader/TextInput.java
@@ -85,9 +85,9 @@ public class TextInput implements IText
if (line.length() > 0 && line.charAt(0) == '#')
{
bookmarks.put(line.substring(1).toLowerCase(Locale.ENGLISH).replaceAll("&[0-9a-fk]", ""), lineNumber);
- chapters.add(line.substring(1).replace('&', '§').replace("§", "&"));
+ chapters.add(line.substring(1).replace('&', '§').replace("§§", "&"));
}
- lines.add(line.replace('&', '§').replace("§", "&"));
+ lines.add(line.replace('&', '§').replace("§§", "&"));
lineNumber++;
}
}