OSDN Git Service

*** empty log message ***
authorkonn <konn@1a406e8e-add9-4483-a2c8-d8cac5b7c224>
Fri, 9 Jun 2006 08:22:32 +0000 (08:22 +0000)
committerkonn <konn@1a406e8e-add9-4483-a2c8-d8cac5b7c224>
Fri, 9 Jun 2006 08:22:32 +0000 (08:22 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/modchxj/mod_chxj/trunk@364 1a406e8e-add9-4483-a2c8-d8cac5b7c224

src/chxj_hdml.c

index 80e4d21..4497501 100644 (file)
@@ -437,30 +437,32 @@ s_hdml_node_exchange(hdml_t* hdml, Node* node,  int indent)
       hdml->out = s_hdml_node_exchange(hdml, child, indent+1);
       hdml->out = s_hdml_end_div_tag(hdml, child);
     }
-    /*------------------------------------------------------------------------*/
-    /* <CENTER>                                                               */
-    /*------------------------------------------------------------------------*/
-    else
-    if ((*name == 'c' || *name == 'C') && strcasecmp(name, "center") == 0) {
-      hdml->out = s_hdml_start_center_tag(hdml, child);
-      hdml->out = s_hdml_node_exchange(hdml, child,indent+1);
-      hdml->out = s_hdml_end_center_tag(hdml, child);
-    }
-    /*------------------------------------------------------------------------*/
-    /* <CHXJ:IF>                                                              */
-    /*------------------------------------------------------------------------*/
     else
-    if (strcasecmp(name, "chxj:if") == 0) {
-      ap_log_rerror(APLOG_MARK, APLOG_DEBUG,0,r, "chxj:if tag found");
-      if (chxj_chxjif_is_mine(hdml->spec, doc, child)) {
-        ap_log_rerror(APLOG_MARK, APLOG_DEBUG,0,r, "chxj:if tag is mine");
-        char* parse_attr = NULL;
-
-        parse_attr = qs_get_parse_attr(doc, child, r);
-        if (parse_attr && strcasecmp(parse_attr, "true") == 0) 
-          hdml->out = s_hdml_node_exchange(hdml, child,indent+1);
-        else
-          s_hdml_chxjif_tag(hdml, child);
+    if (*name == 'c' || *name == 'C') {
+      /*----------------------------------------------------------------------*/
+      /* <CENTER>                                                             */
+      /*----------------------------------------------------------------------*/
+      if (strcasecmp(name, "center") == 0) {
+        hdml->out = s_hdml_start_center_tag(hdml, child);
+        hdml->out = s_hdml_node_exchange(hdml, child,indent+1);
+        hdml->out = s_hdml_end_center_tag(hdml, child);
+      }
+      /*----------------------------------------------------------------------*/
+      /* <CHXJ:IF>                                                            */
+      /*----------------------------------------------------------------------*/
+      else
+      if (strcasecmp(name, "chxj:if") == 0) {
+        ap_log_rerror(APLOG_MARK, APLOG_DEBUG,0,r, "chxj:if tag found");
+        if (chxj_chxjif_is_mine(hdml->spec, doc, child)) {
+          ap_log_rerror(APLOG_MARK, APLOG_DEBUG,0,r, "chxj:if tag is mine");
+          char* parse_attr = NULL;
+  
+          parse_attr = qs_get_parse_attr(doc, child, r);
+          if (parse_attr && strcasecmp(parse_attr, "true") == 0) 
+            hdml->out = s_hdml_node_exchange(hdml, child,indent+1);
+          else
+            s_hdml_chxjif_tag(hdml, child);
+        }
       }
     }
     /*------------------------------------------------------------------------*/