diff options
Diffstat (limited to '')
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | file.c | 19 |
2 files changed, 13 insertions, 13 deletions
@@ -1,3 +1,8 @@ +2002-12-07 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp> + + * [w3m-dev 03534] cleanup file.c + * file.c (HTMLlineproc2body): cleanup + 2002-12-06 Fumitoshi UKAI <ukai@debian.or.jp> * version.c.in: w3m/0.3.2.2+cvs @@ -5552,4 +5557,4 @@ a * [w3m-dev 03276] compile error on EWS4800 * release-0-2-1 * import w3m-0.2.1 -$Id: ChangeLog,v 1.596 2002/12/06 03:40:45 ukai Exp $ +$Id: ChangeLog,v 1.597 2002/12/06 16:33:22 ukai Exp $ @@ -1,4 +1,4 @@ -/* $Id: file.c,v 1.148 2002/12/06 03:40:45 ukai Exp $ */ +/* $Id: file.c,v 1.149 2002/12/06 16:33:43 ukai Exp $ */ #include "fm.h" #include <sys/types.h> #include "myctype.h" @@ -4985,10 +4985,8 @@ HTMLlineproc2body(Buffer *buf, Str (*feed) (), int llimit) id = url_quote_conv(id, buf->document_code); registerName(buf, id, currentLn(buf), pos); } - if (parsedtag_get_value(tag, ATTR_HREF, &p)) { - p = remove_space(p); - p = url_quote_conv(p, buf->document_code); - } + if (parsedtag_get_value(tag, ATTR_HREF, &p)) + p = url_quote_conv(remove_space(p), buf->document_code); if (parsedtag_get_value(tag, ATTR_TARGET, &q)) q = url_quote_conv(q, buf->document_code); if (parsedtag_get_value(tag, ATTR_REFERER, &r)) @@ -5007,7 +5005,7 @@ HTMLlineproc2body(Buffer *buf, Str (*feed) (), int llimit) currentLn(buf), pos); if (p) { effect |= PE_ANCHOR; - a_href = registerHref(buf, remove_space(p), q, r, s, + a_href = registerHref(buf, p, q, r, s, *t, currentLn(buf), pos); a_href->hseq = ((hseq > 0) ? hseq : -hseq) - 1; a_href->slave = (hseq > 0) ? FALSE : TRUE; @@ -5053,8 +5051,7 @@ HTMLlineproc2body(Buffer *buf, Str (*feed) (), int llimit) #endif s = NULL; parsedtag_get_value(tag, ATTR_TITLE, &s); - p = remove_space(p); - p = url_quote_conv(p, buf->document_code); + p = url_quote_conv(remove_space(p), buf->document_code); a_img = registerImg(buf, p, s, currentLn(buf), pos); #ifdef USE_IMAGE a_img->hseq = iseq; @@ -5205,8 +5202,7 @@ HTMLlineproc2body(Buffer *buf, Str (*feed) (), int llimit) break; if (parsedtag_get_value(tag, ATTR_HREF, &p)) { MapArea *a; - p = remove_space(p); - p = url_quote_conv(p, buf->document_code); + p = url_quote_conv(remove_space(p), buf->document_code); t = NULL; parsedtag_get_value(tag, ATTR_TARGET, &t); q = ""; @@ -5255,8 +5251,7 @@ HTMLlineproc2body(Buffer *buf, Str (*feed) (), int llimit) break; case HTML_BASE: if (parsedtag_get_value(tag, ATTR_HREF, &p)) { - p = remove_space(p); - p = url_quote_conv(p, buf->document_code); + p = url_quote_conv(remove_space(p), buf->document_code); if (!buf->baseURL) buf->baseURL = New(ParsedURL); parseURL(p, buf->baseURL, NULL); |