Branch: Tag:

2006-08-22

2006-08-22 12:21:35 by Martin Stjernholm <mast@lysator.liu.se>

Fixed bug when entities and tags return RXML.empty.

Rev: server/etc/modules/RXML.pmod/module.pmod:1.349
Rev: server/etc/modules/RXML.pmod/utils.pmod:1.33

2:   //   // Created 1999-07-30 by Martin Stjernholm.   // - // $Id: module.pmod,v 1.348 2006/05/08 16:16:11 mast Exp $ + // $Id: module.pmod,v 1.349 2006/08/22 12:21:35 mast Exp $      // Kludge: Must use "RXML.refs" somewhere for the whole module to be   // loaded correctly.
464:    frame->raw_tag_text = parser->current_input();    mixed result;    EVAL_FRAME (frame, ctx, parser, type, result); -  if (result != nil) parser->add_value (result); +  if (result != nil && result != empty) parser->add_value (result);    return ({});    }   
489:    frame->raw_tag_text = parser->current_input();    mixed result;    EVAL_FRAME (frame, ctx, parser, type, result); -  if (result != nil) parser->add_value (result); +  if (result != nil && result != empty) parser->add_value (result);    return ({});    }