src/chxj_xhtml_mobile_1_0.c
/**
 * It is a handler who processes the BR tag.
 *
 * @param pdoc  [i/o] The pointer to the XHTML structure at the output
 *                     destination is specified.
 * @param node   [i]   The BR tag node is specified.
 * @return The conversion result is returned.
 */
It is a handler who processes the BR tag.
@param pdoc  [i/o] The pointer to the XHTML structure at the output
destination is specified.
@param node   [i]   The BR tag node is specified.
@return The conversion result is returned.
It is a handler who processes the BR tag . @param pdoc [ i / o ] The pointer to the XHTML structure at the output destination is specified . @param node [ i ] The BR tag node is specified . @return The conversion result is returned .
static char *
s_xhtml_1_0_start_br_tag(void *pdoc, Node *node) 
{
  xhtml_t *xhtml = GET_XHTML(pdoc);
  Doc     *doc   = xhtml->doc;
  Attr    *attr;
  W_L("<br");
  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('c','C',"clear",name)) {
      if (value && (STRCASEEQ('l','L',"left",value) || STRCASEEQ('r','R',"right",value) || STRCASEEQ('a','A',"all",value))) {
        W_L(" clear=\"");
        W_V(value);
        W_L("\"");
      }
    }
  }
  W_L(" />");
  return xhtml->out;
}
static char * s_xhtml_1_0_start_br_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 = 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 ( " \" " ) ; } } } W_L ( " " ) ; return xhtml -> out ; }
It is a handler who processes the BR tag.
It is a handler who processes the BR tag .
/*--------------------------------------------------------------------------*/ /* Get Attributes                                                           */ /*--------------------------------------------------------------------------*/