From f043d170aedc8902e8fdb16225285cce0cdcbd7e Mon Sep 17 00:00:00 2001 From: konn Date: Fri, 9 Jun 2006 08:14:43 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/modchxj/mod_chxj/trunk@358 1a406e8e-add9-4483-a2c8-d8cac5b7c224 --- src/chxj_hdml.c | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/src/chxj_hdml.c b/src/chxj_hdml.c index 902affe1..95ef2408 100644 --- a/src/chxj_hdml.c +++ b/src/chxj_hdml.c @@ -365,24 +365,26 @@ 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_a_tag(hdml, child); } - /*------------------------------------------------------------------------*/ - /* */ - /*------------------------------------------------------------------------*/ - else - if (strcasecmp(name, "font") == 0) { - hdml->out = s_hdml_start_font_tag(hdml, child); - hdml->out = s_hdml_node_exchange(hdml, child,indent+1); - hdml->out = s_hdml_end_font_tag(hdml, child); - } - /*------------------------------------------------------------------------*/ - /*
*/ - /*------------------------------------------------------------------------*/ else - if (strcasecmp(name, "form") == 0) { - hdml->out = s_hdml_start_form_tag(hdml, child); - hdml->hdml_br_flag = 0; - hdml->out = s_hdml_node_exchange(hdml, child,indent+1); - hdml->out = s_hdml_end_form_tag(hdml, child); + if (*name == 'f' || *name == 'F') { + /*----------------------------------------------------------------------*/ + /* */ + /*----------------------------------------------------------------------*/ + if (strcasecmp(name, "font") == 0) { + hdml->out = s_hdml_start_font_tag(hdml, child); + hdml->out = s_hdml_node_exchange(hdml, child,indent+1); + hdml->out = s_hdml_end_font_tag(hdml, child); + } + /*----------------------------------------------------------------------*/ + /* */ + /*----------------------------------------------------------------------*/ + else + if (strcasecmp(name, "form") == 0) { + hdml->out = s_hdml_start_form_tag(hdml, child); + hdml->hdml_br_flag = 0; + hdml->out = s_hdml_node_exchange(hdml, child,indent+1); + hdml->out = s_hdml_end_form_tag(hdml, child); + } } /*------------------------------------------------------------------------*/ /* */ -- 2.11.0