process meta: correctly
authordavid <david@zentus.com>
Tue, 10 Feb 2004 21:23:36 +0000 (21:23 +0000)
committerdavid <david@zentus.com>
Tue, 10 Feb 2004 21:23:36 +0000 (21:23 +0000)
darcs-hash:20040210212336-ac46f-d97e274d5a277efb1a47a1c21b4f5159cfae6677.gz

src/org/ibex/Template.java

index 41c23aa..943fe0f 100644 (file)
@@ -267,7 +267,7 @@ public class Template {
 
         public void endElement(XML.Element c) throws XML.Exn, IOException {
             switch(state) {
 
         public void endElement(XML.Element c) throws XML.Exn, IOException {
             switch(state) {
-                case STATE_IN_META_NODE: if (meta-- < 0) state = STATE_IN_ROOT_NODE; return;
+                case STATE_IN_META_NODE: if (--meta < 0) state = STATE_IN_ROOT_NODE; return;
                 case STATE_IN_ROOT_NODE: return;
                 case STATE_IN_TEMPLATE_NODE: {
                     if (t.content != null) { t.script = parseScript(t.content, t.content_start); t.content = null; }
                 case STATE_IN_ROOT_NODE: return;
                 case STATE_IN_TEMPLATE_NODE: {
                     if (t.content != null) { t.script = parseScript(t.content, t.content_start); t.content = null; }