OSDN Git Service

* adding h1,h2,h3,h4,h5,h6 tag handlers for JHTML.
authorkonn <konn@1a406e8e-add9-4483-a2c8-d8cac5b7c224>
Tue, 13 Jun 2006 19:43:38 +0000 (19:43 +0000)
committerkonn <konn@1a406e8e-add9-4483-a2c8-d8cac5b7c224>
Tue, 13 Jun 2006 19:43:38 +0000 (19:43 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/modchxj/mod_chxj/trunk@612 1a406e8e-add9-4483-a2c8-d8cac5b7c224

src/chxj_jhtml.c

index a8df706..0215ced 100644 (file)
@@ -242,6 +242,48 @@ s_jhtml_node_exchange(jhtml_t* jhtml, Node* node, int indent)
         s_jhtml_start_hr_tag  (jhtml, child);
         s_jhtml_end_hr_tag    (jhtml, child);
       }
+      /*----------------------------------------------------------------------*/
+      /* <H1>                                                                 */
+      /*----------------------------------------------------------------------*/
+      else
+      if (strcasecmp(name, "h1") == 0) {
+        s_jhtml_node_exchange (jhtml, child,indent+1);
+      }
+      /*----------------------------------------------------------------------*/
+      /* <H2>                                                                 */
+      /*----------------------------------------------------------------------*/
+      else
+      if (strcasecmp(name, "h2") == 0) {
+        s_jhtml_node_exchange (jhtml, child,indent+1);
+      }
+      /*----------------------------------------------------------------------*/
+      /* <H3>                                                                 */
+      /*----------------------------------------------------------------------*/
+      else
+      if (strcasecmp(name, "h3") == 0) {
+        s_jhtml_node_exchange (jhtml, child,indent+1);
+      }
+      /*----------------------------------------------------------------------*/
+      /* <H4>                                                                 */
+      /*----------------------------------------------------------------------*/
+      else
+      if (strcasecmp(name, "h4") == 0) {
+        s_jhtml_node_exchange (jhtml, child,indent+1);
+      }
+      /*----------------------------------------------------------------------*/
+      /* <H5>                                                                 */
+      /*----------------------------------------------------------------------*/
+      else
+      if (strcasecmp(name, "h5") == 0) {
+        s_jhtml_node_exchange (jhtml, child,indent+1);
+      }
+      /*----------------------------------------------------------------------*/
+      /* <H6>                                                                 */
+      /*----------------------------------------------------------------------*/
+      else
+      if (strcasecmp(name, "h6") == 0) {
+        s_jhtml_node_exchange (jhtml, child,indent+1);
+      }
     }
     /*------------------------------------------------------------------------*/
     /* <META>                                                                 */