OSDN Git Service

* Fixed.
authorAtsushi Konno <konn@users.sourceforge.jp>
Tue, 24 Aug 2010 16:34:24 +0000 (01:34 +0900)
committerAtsushi Konno <konn@users.sourceforge.jp>
Tue, 24 Aug 2010 16:34:24 +0000 (01:34 +0900)
    - h1,h2,h3,h4,h5,h6 for SoftBank

src/chxj_jxhtml.c

index cf29fc5..982134e 100644 (file)
@@ -2959,8 +2959,9 @@ s_jxhtml_start_h1_tag(void *pdoc, Node *node)
   if (align) {
     W_L("<div align=\"");
     W_V(align);
-    W_L("\"><h1>");
+    W_L("\">");
   }
+  W_L("<h1>");
   return jxhtml->out;
 }
 
@@ -2984,9 +2985,10 @@ s_jxhtml_end_h1_tag(void *pdoc, Node *UNUSED(child))
   doc     = jxhtml->doc;
   r       = doc->r;
   
+  W_L("</h1>");
   if (jxhtml->h1_align_flag) {
     jxhtml->h1_align_flag--;
-    W_L("</h1></div>");
+    W_L("</div>");
   }
   return jxhtml->out;
 }
@@ -3029,8 +3031,9 @@ s_jxhtml_start_h2_tag(void *pdoc, Node *node)
   if (align) {
     W_L("<div align=\"");
     W_V(align);
-    W_L("\"><h2>");
+    W_L("\">");
   }
+  W_L("<h2>");
   return jxhtml->out;
 }
 
@@ -3054,9 +3057,10 @@ s_jxhtml_end_h2_tag(void *pdoc, Node *UNUSED(child))
   doc     = jxhtml->doc;
   r       = doc->r;
   
+  W_L("</h2>");
   if (jxhtml->h2_align_flag) {
     jxhtml->h2_align_flag--;
-    W_L("</h2></div>");
+    W_L("</div>");
   }
   return jxhtml->out;
 }
@@ -3101,8 +3105,9 @@ s_jxhtml_start_h3_tag(void *pdoc, Node *node)
   if (align) {
     W_L("<div align=\"");
     W_V(align);
-    W_L("\"><h3>");
+    W_L("\">");
   }
+  W_L("<h3>");
   return jxhtml->out;
 }
 
@@ -3126,9 +3131,10 @@ s_jxhtml_end_h3_tag(void *pdoc, Node *UNUSED(child))
   doc     = jxhtml->doc;
   r       = doc->r;
   
+  W_L("</h3>");
   if (jxhtml->h3_align_flag) {
     jxhtml->h3_align_flag--;
-    W_L("</h3></div>");
+    W_L("</div>");
   }
   return jxhtml->out;
 }
@@ -3171,8 +3177,9 @@ s_jxhtml_start_h4_tag(void *pdoc, Node *node)
   if (align) {
     W_L("<div align=\"");
     W_V(align);
-    W_L("\"><h4>");
+    W_L("\">");
   }
+  W_L("<h4>");
   return jxhtml->out;
 }
 
@@ -3196,9 +3203,10 @@ s_jxhtml_end_h4_tag(void *pdoc, Node *UNUSED(child))
   doc     = jxhtml->doc;
   r       = doc->r;
   
+  W_L("</h4>");
   if (jxhtml->h4_align_flag) {
     jxhtml->h4_align_flag--;
-    W_L("</h4></div>");
+    W_L("</div>");
   }
   return jxhtml->out;
 }
@@ -3241,8 +3249,9 @@ s_jxhtml_start_h5_tag(void *pdoc, Node *node)
   if (align) {
     W_L("<div align=\"");
     W_V(align);
-    W_L("\"><h5>");
+    W_L("\">");
   }
+  W_L("<h5>");
   return jxhtml->out;
 }
 
@@ -3266,9 +3275,10 @@ s_jxhtml_end_h5_tag(void *pdoc, Node *UNUSED(child))
   doc     = jxhtml->doc;
   r       = doc->r;
   
+  W_L("</h5>");
   if (jxhtml->h5_align_flag) {
     jxhtml->h5_align_flag--;
-    W_L("</h5></div>");
+    W_L("</div>");
   }
   return jxhtml->out;
 }
@@ -3313,6 +3323,7 @@ s_jxhtml_start_h6_tag(void *pdoc, Node *node)
     W_V(align);
     W_L("\">");
   }
+  W_L("<h6>");
   return jxhtml->out;
 }
 
@@ -3336,6 +3347,7 @@ s_jxhtml_end_h6_tag(void *pdoc, Node *UNUSED(child))
   doc     = jxhtml->doc;
   r       = doc->r;
   
+  W_L("</h6>");
   if (jxhtml->h6_align_flag) {
     jxhtml->h6_align_flag--;
     W_L("</div>");