From 009196a48ec0820288dac580f661c8884e1c1108 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Fri, 24 Feb 2017 08:49:46 +0100 Subject: [PATCH] Fix \t handling bug in Bundle --- VERSION | 2 +- changelog | 8 +++++++- src/be/nikiroo/utils/resources/Bundle.java | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 6085e94..23aa839 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.1 +1.2.2 diff --git a/changelog b/changelog index 1e993c2..4bcb5a4 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 cfdc9e0..ca61f6d 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) { -- 2.27.0