Fix \t handling bug in Bundle
authorNiki Roo <niki@nikiroo.be>
Fri, 24 Feb 2017 07:49:46 +0000 (08:49 +0100)
committerNiki Roo <niki@nikiroo.be>
Fri, 24 Feb 2017 07:49:46 +0000 (08:49 +0100)
VERSION
changelog
src/be/nikiroo/utils/resources/Bundle.java

diff --git a/VERSION b/VERSION
index 6085e946503a10fb4d58a5c7d9a6e572c21ddd2e..23aa8390630cc1ae7f102ddd472e4ba48b689844 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.2.1
+1.2.2
index 1e993c2b3e2438e38d37c3a7e7e2c05c6b54e05a..4bcb5a44661c067f2059617ed9a73b0f6985037d 100644 (file)
--- a/changelog
+++ b/changelog
@@ -1,4 +1,10 @@
-Version 1.1.2
+Version 1.2.2
+-------------
+
+Fix bug in Bundle regarding \t handling
+       ...tests should be written (later)
+
+Version 1.2.1
 -------------
 
 New drawEllipse3D method
index cfdc9e0836871347ec76f6c9f11c84acee4ed90d..ca61f6d8e509c2616f307f3d2076a1475575d2ad 100644 (file)
@@ -400,7 +400,7 @@ public class Bundle<E extends Enum<E>> {
                        value = "";
                }
 
-               String[] lines = value.replaceAll("\t", "\\t").split("\n");
+               String[] lines = value.replaceAll("\t", "\\\\\\t").split("\n");
                for (int i = 0; i < lines.length; i++) {
                        writer.write(lines[i]);
                        if (i < lines.length - 1) {