doc = chtml10->doc;
r = doc->r;
- W10_L("</h5>\r\n");
+ W10_L("</h5>");
return chtml10->out;
}
* @param node [i] The H6 tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml10_start_h6_tag(void* pdoc, Node* UNUSED(node))
+static char *
+s_chtml10_start_h6_tag(void *pdoc, Node *node)
{
- Doc* doc;
- request_rec* r;
- chtml10_t* chtml10;
+ Doc *doc;
+ request_rec *r;
+ chtml10_t *chtml10;
+ Attr *attr;
chtml10 = GET_CHTML10(pdoc);
doc = chtml10->doc;
r = doc->r;
- W10_L("<h6>\r\n");
+ W10_L("<h6");
+ for (attr = qs_get_attr(doc,node);
+ attr;
+ attr = qs_get_next_attr(doc,attr)) {
+ char* name;
+ char* value;
+ name = qs_get_attr_name(doc,attr);
+ value = qs_get_attr_value(doc,attr);
+ if (STRCASEEQ('a','A',"align", name)) {
+ if (value && (STRCASEEQ('l','L',"left",value) || STRCASEEQ('r','R',"right",value) || STRCASEEQ('c','C',"center",value))) {
+ W10_L(" align=\"");
+ W10_V(value);
+ W10_L("\"");
+ break;
+ }
+ }
+ }
+ W10_L(">");
return chtml10->out;
}
* @param node [i] The H6 tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml10_end_h6_tag(void* pdoc, Node* UNUSED(child))
+static char *
+s_chtml10_end_h6_tag(void *pdoc, Node *UNUSED(child))
{
Doc* doc;
request_rec* r;
doc = chtml10->doc;
r = doc->r;
- W10_L("</h6>\r\n");
+ W10_L("</h6>");
return chtml10->out;
}