diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1997-05-25 00:16:10 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1997-05-25 00:16:10 -0400 |
commit | 945e8eb6bb07f64aaca42207af3311220ff2e4ba (patch) | |
tree | 6afb50262b844dd069bd4f7234da68008c48677c /WWW/Library/Implementation/HTFile.c | |
parent | e4409c408eedf320b8845cafdd62b664bec1afd8 (diff) | |
download | lynx-snapshots-945e8eb6bb07f64aaca42207af3311220ff2e4ba.tar.gz |
snapshot of project "lynx", label v2-7-1ac_0-28
Diffstat (limited to 'WWW/Library/Implementation/HTFile.c')
-rw-r--r-- | WWW/Library/Implementation/HTFile.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/WWW/Library/Implementation/HTFile.c b/WWW/Library/Implementation/HTFile.c index 40097a96..1565e629 100644 --- a/WWW/Library/Implementation/HTFile.c +++ b/WWW/Library/Implementation/HTFile.c @@ -100,6 +100,8 @@ typedef struct _HTSuffix { #define PUTS(s) (*target->isa->put_string)(target, s) #define START(e) (*target->isa->start_element)(target, e, 0, 0, 0) #define END(e) (*target->isa->end_element)(target, e, 0) +#define MAYBE_END(e) if (HTML_dtd.tags[e].contents != SGML_EMPTY) \ + (*target->isa->end_element)(target, e, 0) #define FREE_TARGET (*target->isa->_free)(target) struct _HTStructured { CONST HTStructuredClass * isa; @@ -684,7 +686,6 @@ PUBLIC HTFormat HTFileFormat ARGS2( extern char LYforce_HTML_mode; if (LYforce_HTML_mode) { - LYforce_HTML_mode = FALSE; return WWW_HTML; } @@ -1987,6 +1988,7 @@ forget_multi: PUTS(file_extra); FREE(file_extra); } + MAYBE_END(HTML_LI); #endif /* LONG_LIST */ next_element = HTBTree_next(bt, next_element); |