src/chxj_chtml20.c
/**
 * It is a handler who processes the FONT tag.
 *
 * @param pdoc  [i/o] The pointer to the CHTML structure at the output
 *                     destination is specified.
 * @param node   [i]   The FONT tag node is specified.
 * @return The conversion result is returned.
 */
It is a handler who processes the FONT tag.
@param pdoc  [i/o] The pointer to the CHTML structure at the output
destination is specified.
@param node   [i]   The FONT tag node is specified.
@return The conversion result is returned.
It is a handler who processes the FONT tag . @param pdoc [ i / o ] The pointer to the CHTML structure at the output destination is specified . @param node [ i ] The FONT tag node is specified . @return The conversion result is returned .
static char *
s_chtml20_start_font_tag(void *pdoc, Node *node) 
{
  chtml20_t   *chtml20;
  Doc         *doc;
  request_rec *r;
  Attr        *attr;
  char        *color = NULL;
  chtml20 = GET_CHTML20(pdoc);
  doc     = chtml20->doc;
  r       = doc->r;
  for (attr = qs_get_attr(doc,node);
       attr && color == NULL;
       attr = qs_get_next_attr(doc,attr)) {
    char *name  = qs_get_attr_name(doc,attr);
    char *value = qs_get_attr_value(doc,attr);
    switch(*name) {
    case 'c':
    case 'C':
      if (strcasecmp(name, "color") == 0 && value && *value) {
        color = apr_pstrdup(doc->buf.pool, value);
      }
      break;
    case 's':
    case 'S':
      if (strcasecmp(name, "size") == 0) {
      }
      break;
    default:
      break;
    }
  }
  if (color) {
    W_L("<font color=\"");
    W_V(color);
    W_L("\">");
    chtml20->font_flag++;
  }
  return chtml20->out;
}
static char * s_chtml20_start_font_tag ( void * pdoc , Node * node ) { chtml20_t * chtml20 ; Doc * doc ; request_rec * r ; Attr * attr ; char * color = NULL ; chtml20 = GET_CHTML20 ( pdoc ) ; doc = chtml20 -> doc ; r = doc -> r ; for ( attr = qs_get_attr ( doc , node ) ; attr && color == NULL ; attr = qs_get_next_attr ( doc , attr ) ) { char * name = qs_get_attr_name ( doc , attr ) ; char * value = qs_get_attr_value ( doc , attr ) ; switch ( * name ) { case ' ' : case ' ' : if ( strcasecmp ( name , " " ) == 0 && value && * value ) { color = apr_pstrdup ( doc -> buf . pool , value ) ; } break ; case ' ' : case ' ' : if ( strcasecmp ( name , " " ) == 0 ) { } break ; default : break ; } } if ( color ) { W_L ( " \" " ) ; W_V ( color ) ; W_L ( " \" " ) ; chtml20 -> font_flag ++ ; } return chtml20 -> out ; }
It is a handler who processes the FONT tag.
It is a handler who processes the FONT tag .
/*--------------------------------------------------------------------------*/ /* Get Attributes                                                           */ /*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/ /* CHTML 5.0                                                          */ /*--------------------------------------------------------------------*/ /* ignore */