Fix \t handling bug in Bundle
[nikiroo-utils.git] / src / be / nikiroo / utils / resources / Bundle.java
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) {