aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-12-06 16:33:22 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-12-06 16:33:22 +0000
commitb49619c69cb492173ddf49bf87ea8d31a8bf6e56 (patch)
treecc07fca6d10e42e2685fdb5fb4d31fb9b90855bb /file.c
parent* version.c.in: w3m/0.3.2.2+cvs (diff)
downloadw3m-b49619c69cb492173ddf49bf87ea8d31a8bf6e56.tar.gz
w3m-b49619c69cb492173ddf49bf87ea8d31a8bf6e56.zip
[w3m-dev 03534] cleanup file.c
* file.c (HTMLlineproc2body): cleanup From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'file.c')
-rw-r--r--file.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/file.c b/file.c
index fe856c7..16e4aa8 100644
--- a/file.c
+++ b/file.c
@@ -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);