diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-10-16 18:11:15 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-10-16 18:11:15 +0000 |
commit | eca32d1b71cc1c94e492c87f708137a491ae8214 (patch) | |
tree | 32eb6560151d6881527746bc48b03eceaed44520 /parsetagx.c | |
parent | [w3m-dev 03339] Re: Debian Bug#164098 w3m: <sup> is not properly supported (diff) | |
download | w3m-eca32d1b71cc1c94e492c87f708137a491ae8214.tar.gz w3m-eca32d1b71cc1c94e492c87f708137a491ae8214.zip |
[w3m-dev 03341] white space is needed to close an empty-element tag
* parsetagx.c (parse_tag): extract tagname until '/'
From: Daiki Ueno <ueno@unixuser.org>
Diffstat (limited to 'parsetagx.c')
-rw-r--r-- | parsetagx.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/parsetagx.c b/parsetagx.c index 0742260..dad45c8 100644 --- a/parsetagx.c +++ b/parsetagx.c @@ -1,4 +1,4 @@ -/* $Id: parsetagx.c,v 1.9 2002/08/27 16:39:40 ukai Exp $ */ +/* $Id: parsetagx.c,v 1.10 2002/10/16 18:11:15 ukai Exp $ */ #include "fm.h" #include "myctype.h" #include "indep.h" @@ -126,7 +126,8 @@ parse_tag(char **s, int internal) *(p++) = *(q++); SKIP_BLANKS(q); } - while (*q && !IS_SPACE(*q) && *q != '>' && p - tagname < MAX_TAG_LEN - 1) { + while (*q && !IS_SPACE(*q) && !(tagname[0] != '/' && *q == '/') && + *q != '>' && p - tagname < MAX_TAG_LEN - 1) { *(p++) = tolower(*(q++)); } *p = '\0'; |