X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=src%2Forg%2Fcacert%2Fgigi%2Foutput%2Ftemplate%2FTemplate.java;h=dca6568b7432847f4db4cca56f9840e9bc9cab41;hb=7e1a029d9df4c731a2087e58f774e6d8737aace3;hp=69f17bda11db9cf6774e74e1f146aa6c0af2d88e;hpb=7c0b360a01afbb30258b5124ae3fedaf016c8c7a;p=gigi.git diff --git a/src/org/cacert/gigi/output/template/Template.java b/src/org/cacert/gigi/output/template/Template.java index 69f17bda..dca6568b 100644 --- a/src/org/cacert/gigi/output/template/Template.java +++ b/src/org/cacert/gigi/output/template/Template.java @@ -121,10 +121,10 @@ public class Template implements Outputable { } else if (s2.startsWith("=s,")) { String command = s2.substring(3); final LinkedList store = new LinkedList(); - while (command.startsWith("$") || command.startsWith("\"")) { + while (command.startsWith("$") || command.startsWith("\"") || command.startsWith("!\"")) { int idx; - if (command.startsWith("\"")) { - idx = command.indexOf("\"", 1) + 1; + if (command.startsWith("\"") || command.startsWith("!\"")) { + idx = command.indexOf("\"", command.charAt(0) == '!' ? 2 : 1) + 1; store.add(command.substring(0, idx - 1)); } else { idx = command.indexOf(",");