From: Niki Roo Date: Fri, 24 Feb 2017 07:49:46 +0000 (+0100) Subject: Fix \t handling bug in Bundle X-Git-Tag: fanfix-swing-0.0.1~21^2~294 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=009196a48ec0820288dac580f661c8884e1c1108;p=fanfix-swing.git Fix \t handling bug in Bundle --- diff --git a/VERSION b/VERSION index 6085e946..23aa8390 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.1 +1.2.2 diff --git a/changelog b/changelog index 1e993c2b..4bcb5a44 100644 --- 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 diff --git a/src/be/nikiroo/utils/resources/Bundle.java b/src/be/nikiroo/utils/resources/Bundle.java index cfdc9e08..ca61f6d8 100644 --- a/src/be/nikiroo/utils/resources/Bundle.java +++ b/src/be/nikiroo/utils/resources/Bundle.java @@ -400,7 +400,7 @@ public class Bundle> { 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) {