]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/output/template/SprintfCommand.java
Format code according do BenBE's formatter.
[gigi.git] / src / org / cacert / gigi / output / template / SprintfCommand.java
index 42ed9570d514fd3498c7ddd1504b50a3c4dce6e9..1a3c29084e5d95bf2384f9301575a3a07b5ae85a 100644 (file)
@@ -8,22 +8,24 @@ import org.cacert.gigi.Language;
 import org.cacert.gigi.output.Outputable;
 
 public final class SprintfCommand implements Outputable {
-       private final String text;
-       private final LinkedList<String> store;
 
-       public SprintfCommand(String text, LinkedList<String> store) {
-               this.text = text;
-               this.store = store;
-       }
+    private final String text;
 
-       @Override
-       public void output(PrintWriter out, Language l, Map<String, Object> vars) {
-               String[] parts = l.getTranslation(text).split("%s");
-               String[] myvars = store.toArray(new String[store.size()]);
-               out.print(parts[0]);
-               for (int j = 1; j < parts.length; j++) {
-                       Template.outputVar(out, l, vars, myvars[j - 1].substring(1));
-                       out.print(parts[j]);
-               }
-       }
-}
\ No newline at end of file
+    private final LinkedList<String> store;
+
+    public SprintfCommand(String text, LinkedList<String> store) {
+        this.text = text;
+        this.store = store;
+    }
+
+    @Override
+    public void output(PrintWriter out, Language l, Map<String, Object> vars) {
+        String[] parts = l.getTranslation(text).split("%s");
+        String[] myvars = store.toArray(new String[store.size()]);
+        out.print(parts[0]);
+        for (int j = 1; j < parts.length; j++) {
+            Template.outputVar(out, l, vars, myvars[j - 1].substring(1));
+            out.print(parts[j]);
+        }
+    }
+}