src/chxj_chtml50.c
/**
 * It is a handler who processes the H6 tag.
 *
 * @param pdoc  [i/o] The pointer to the CHTML structure at the output
 *                     destination is specified.
 * @param node   [i]   The H6 tag node is specified.
 * @return The conversion result is returned.
 */
It is a handler who processes the H6 tag.
@param pdoc  [i/o] The pointer to the CHTML structure at the output
destination is specified.
@param node   [i]   The H6 tag node is specified.
@return The conversion result is returned.
It is a handler who processes the H6 tag . @param pdoc [ i / o ] The pointer to the CHTML structure at the output destination is specified . @param node [ i ] The H6 tag node is specified . @return The conversion result is returned .
static char *
s_chtml50_start_h6_tag(void *pdoc, Node *node)
{
  chtml50_t   *chtml50;
  Doc         *doc;
  request_rec *r;
  Attr        *attr;
  chtml50 = GET_CHTML50(pdoc);
  doc     = chtml50->doc;
  r       = doc->r;
  W_L("<h6");
  for (attr = qs_get_attr(doc,node);
       attr;
       attr = qs_get_next_attr(doc,attr)) {
    char *name  = qs_get_attr_name(doc,attr);
    char *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))) {
        W_L(" align=\"");
        W_V(value);
        W_L("\"");
        break;
      }
    }
  }
  W_L(">");
  return chtml50->out;
}
static char * s_chtml50_start_h6_tag ( void * pdoc , Node * node ) { chtml50_t * chtml50 ; Doc * doc ; request_rec * r ; Attr * attr ; chtml50 = GET_CHTML50 ( pdoc ) ; doc = chtml50 -> doc ; r = doc -> r ; W_L ( " " ) ; for ( attr = qs_get_attr ( doc , node ) ; attr ; attr = qs_get_next_attr ( doc , attr ) ) { char * name = qs_get_attr_name ( doc , attr ) ; char * value = qs_get_attr_value ( doc , attr ) ; if ( STRCASEEQ ( ' ' , ' ' , " " , name ) ) { if ( value && ( STRCASEEQ ( ' ' , ' ' , " " , value ) || STRCASEEQ ( ' ' , ' ' , " " , value ) || STRCASEEQ ( ' ' , ' ' , " " , value ) ) ) { W_L ( " \" " ) ; W_V ( value ) ; W_L ( " \" " ) ; break ; } } } W_L ( " " ) ; return chtml50 -> out ; }
It is a handler who processes the H6 tag.
It is a handler who processes the H6 tag .