diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1999-01-18 12:35:47 -0500 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1999-01-18 12:35:47 -0500 |
commit | d97a65137382daf2f896a947ba680c095f7ab664 (patch) | |
tree | 6db3daec0d5c2f909ba586adff0ddc2ad96d84d9 /src/HTML.c | |
parent | a2e9461739dd215db90a5cee2c22a74e5f57d151 (diff) | |
download | lynx-snapshots-d97a65137382daf2f896a947ba680c095f7ab664.tar.gz |
snapshot of project "lynx", label v2-8-2dev_14
Diffstat (limited to 'src/HTML.c')
-rw-r--r-- | src/HTML.c | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/src/HTML.c b/src/HTML.c index 486b1b15..377f5ed6 100644 --- a/src/HTML.c +++ b/src/HTML.c @@ -681,13 +681,17 @@ PRIVATE void HTML_start_element ARGS6( UPDATE_STYLE; } - CTRACE(tfp, "me->tag_charset: %d -> ", me->tag_charset); - if (tag_charset < 0) - me->tag_charset = me->UCLYhndl; - else - me->tag_charset = tag_charset; - CTRACE(tfp, "%d (me->UCLYhndl: %d, tag_charset: %d)\n", - me->tag_charset, me->UCLYhndl, tag_charset); + { + /* me->tag_charset is charset for attribute values. */ + int j = ((tag_charset < 0) ? me->UCLYhndl : tag_charset); + + if ((me->tag_charset != j) || (j < 0 /* for trace entry */)) { + CTRACE(tfp, "me->tag_charset: %d -> %d", me->tag_charset, j ); + CTRACE(tfp, " (me->UCLYhndl: %d, tag_charset: %d)\n", + me->UCLYhndl, tag_charset); + me->tag_charset = j; + } + } /* this should be done differently */ #if defined(USE_COLOR_STYLE) @@ -762,10 +766,10 @@ PRIVATE void HTML_start_element ARGS6( if (url_type == LYNXIMGMAP_URL_TYPE) { /* - * These have a are non-standard form, basically + * These have a non-standard form, basically * strip the prefix or the code below would insert * a nonsense host into the pseudo URL. These - * should never occur where they would used for + * should never occur where they would be used for * resolution of relative URLs anyway. We can * also strip the #map part. - kw */ |