From 50f9f94bc54ddad1420680e8a8f4c588eeb5d78c Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Thu, 8 Jan 2004 02:03:09 -0500 Subject: snapshot of project "lynx", label v2-8-5dev_17 --- WWW/Library/Implementation/SGML.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'WWW/Library/Implementation/SGML.c') diff --git a/WWW/Library/Implementation/SGML.c b/WWW/Library/Implementation/SGML.c index 81304445..e31bcc45 100644 --- a/WWW/Library/Implementation/SGML.c +++ b/WWW/Library/Implementation/SGML.c @@ -2254,16 +2254,15 @@ top1: PSRCSTOP(abracket); context->current_tag = NULL; - string->size = 0; - context->current_attribute_number = INVALID; - context->state = S_text; - break; - } + } else #endif - end_element(context, context->element_stack->tag); + end_element(context, context->element_stack->tag); + string->size = 0; context->current_attribute_number = INVALID; context->state = S_text; + context->leading_spaces = 0; + context->trailing_spaces = 0; break; } @@ -4342,7 +4341,7 @@ after_switch: FREE(context->active_include); context->include_index = 0; } else { - if (context->current_tag_charset == UTF8 || + if (context->current_tag_charset == UTF8_handle || context->T.trans_from_uni) { /* * If it looks like we would have fed UTF-8 to the @@ -4454,7 +4453,6 @@ PUBLIC HTStream* SGML_new ARGS3( context->actions = (CONST HTStructuredClass*)(((HTStream*)target)->isa); /* Ugh: no OO */ context->unknown_tag = &HTTag_unrecognized; -/* context->extra_tags = dtd->tags + dtd->number_of_tags; */ context->current_tag = context->slashedtag = NULL; context->state = S_text; context->kanji_buf = '\0'; -- cgit 1.4.1-2-gfad0