]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Escape @ in team names. Requires JRE >= 1.5 now.
authorBruno Haible <bruno@clisp.org>
Sat, 27 Sep 2008 15:47:34 +0000 (15:47 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:15:52 +0000 (12:15 +0200)
gettext-runtime/doc/Admin/Matrix.java

index 315c33e704527d6f6f8d8ead6861319736426a43..72af667b9a99a6065f679cf9226dd4a8baf2e70c 100644 (file)
@@ -215,7 +215,7 @@ public class Matrix {
         for (int t = groups[group][0]; t < groups[group][1]; t++) {
           int i = columnwidth[t]-teams[t].length();
           spaces(stream,1+i/2);
-          stream.print(teams[t]);
+          stream.print(teams[t].replace("@","@@"));
           spaces(stream,(i+1)/2);
         }
         stream.println();
@@ -277,7 +277,7 @@ public class Matrix {
         for (int t = groups[group][0]; t < groups[group][1]; t++) {
           int i = columnwidth[t]-teams[t].length();
           spaces(stream,1+i/2);
-          stream.print(teams[t]);
+          stream.print(teams[t].replace("@","@@"));
           spaces(stream,(i+1)/2);
         }
         stream.println();