diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1999-02-18 10:30:13 -0500 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1999-02-18 10:30:13 -0500 |
commit | c5fef0d4ab035d8fd988270a39ed6f9d0e9b214c (patch) | |
tree | 24189287f1876ed78999a0e3722ed26a8f733d05 /src/HTML.c | |
parent | 8ce6b560f4fb325be3d34266c54c70eb8668e8e1 (diff) | |
download | lynx-snapshots-c5fef0d4ab035d8fd988270a39ed6f9d0e9b214c.tar.gz |
snapshot of project "lynx", label v2-8-2dev_17
Diffstat (limited to 'src/HTML.c')
-rw-r--r-- | src/HTML.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/HTML.c b/src/HTML.c index 377f5ed6..567dd804 100644 --- a/src/HTML.c +++ b/src/HTML.c @@ -609,7 +609,7 @@ char class_string[TEMPSTRINGSIZE]; #endif #ifdef USE_COLOR_STYLE -static char *Style_className; +static char *Style_className = NULL; static char myHash[128]; static int hcode; #endif @@ -2033,6 +2033,8 @@ PRIVATE void HTML_start_element ARGS6( if (!me->style_change) { if (HText_LastLineSize(me->text, FALSE)) { HText_appendCharacter(me->text, '\r'); + } else { + HText_NegateLineOne(me->text); } } else { UPDATE_STYLE; @@ -6839,6 +6841,9 @@ PRIVATE void HTML_free ARGS1(HTStructured *, me) } styles[HTML_PRE]->alignment = HT_LEFT; } +#ifdef USE_COLOR_STYLE + FREE(Style_className); +#endif FREE(me->base_href); FREE(me->map_address); FREE(me->LastOptionValue); @@ -6925,6 +6930,9 @@ PRIVATE void HTML_abort ARGS2(HTStructured *, me, HTError, e) } styles[HTML_PRE]->alignment = HT_LEFT; } +#ifdef USE_COLOR_STYLE + FREE(Style_className); +#endif FREE(me->base_href); FREE(me->map_address); FREE(me->textarea_name); |