src/chxj_xhtml_mobile_1_0.c
/**
 * It is a handler who processes the H4 tag.
 *
 * @param pdoc  [i/o] The pointer to the XHTML structure at the output
 *                     destination is specified.
 * @param node   [i]   The H4 tag node is specified.
 * @return The conversion result is returned.
 */
It is a handler who processes the H4 tag.
@param pdoc  [i/o] The pointer to the XHTML structure at the output
destination is specified.
@param node   [i]   The H4 tag node is specified.
@return The conversion result is returned.
It is a handler who processes the H4 tag . @param pdoc [ i / o ] The pointer to the XHTML structure at the output destination is specified . @param node [ i ] The H4 tag node is specified . @return The conversion result is returned .
static char *
s_xhtml_1_0_start_h4_tag(void *pdoc, Node *node)
{
  xhtml_t *xhtml = GET_XHTML(pdoc);
  Doc     *doc   = xhtml->doc;
  Attr    *attr;
  W_L("<h4");
  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) {
        if (STRCASEEQ('l','L',"left",value)) {
          W_L(" style=\"");
          W_L("text-align:left");
          W_L("\"");
        }
        else if (STRCASEEQ('r','R',"right",value)) {
          W_L(" style=\"");
          W_L("text-align:right");
          W_L("\"");
        }
        else if (STRCASEEQ('c','C',"center",value)) {
          W_L(" style=\"");
          W_L("text-align:center");
          W_L("\"");
        }
        break;
      }
    }
  }
  W_L(">");
  return xhtml->out;
}
static char * s_xhtml_1_0_start_h4_tag ( void * pdoc , Node * node ) { xhtml_t * xhtml = GET_XHTML ( pdoc ) ; Doc * doc = xhtml -> doc ; Attr * attr ; W_L ( " " ) ; 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 ( ' ' , ' ' , " " , name ) ) { if ( value ) { if ( STRCASEEQ ( ' ' , ' ' , " " , value ) ) { W_L ( " \" " ) ; W_L ( " " ) ; W_L ( " \" " ) ; } else if ( STRCASEEQ ( ' ' , ' ' , " " , value ) ) { W_L ( " \" " ) ; W_L ( " " ) ; W_L ( " \" " ) ; } else if ( STRCASEEQ ( ' ' , ' ' , " " , value ) ) { W_L ( " \" " ) ; W_L ( " " ) ; W_L ( " \" " ) ; } break ; } } } W_L ( " " ) ; return xhtml -> out ; }
It is a handler who processes the H4 tag.
It is a handler who processes the H4 tag .