about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/SGML.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2004-01-08 02:03:09 -0500
committerThomas E. Dickey <dickey@invisible-island.net>2004-01-08 02:03:09 -0500
commit50f9f94bc54ddad1420680e8a8f4c588eeb5d78c (patch)
treee11f7d50456d8f0c1ad03f00424e71b52bd6f505 /WWW/Library/Implementation/SGML.c
parent6bbc5d0bfc53e1fbe69f916504c008e1b74b0b19 (diff)
downloadlynx-snapshots-50f9f94bc54ddad1420680e8a8f4c588eeb5d78c.tar.gz
snapshot of project "lynx", label v2-8-5dev_17
Diffstat (limited to 'WWW/Library/Implementation/SGML.c')
-rw-r--r--WWW/Library/Implementation/SGML.c14
1 files changed, 6 insertions, 8 deletions
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';