diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-03-15 18:48:55 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-03-15 18:48:55 +0000 |
commit | dbafc61f6da79da9aa06eafc01a77f1a7af9607c (patch) | |
tree | a946f624bf20513f326dab3387114c4d64ad0480 /map.c | |
parent | -title support (diff) | |
download | w3m-dbafc61f6da79da9aa06eafc01a77f1a7af9607c.tar.gz w3m-dbafc61f6da79da9aa06eafc01a77f1a7af9607c.zip |
part of [w3m-dev-en 00713] contrib: unofficial "current page info" patch, updated for w3m-0.3
by Moritz Barsnick <barsnick@gmx.net>
* map.c (page_info_panel): s/line/lines/
s/byte/bytes/
anchor for URL of current anchor
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r-- | map.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $Id: map.c,v 1.7 2002/02/08 11:45:07 ukai Exp $ */ +/* $Id: map.c,v 1.8 2002/03/15 18:48:55 ukai Exp $ */ /* * client-side image maps */ @@ -360,20 +360,22 @@ page_info_panel(Buffer *buf) Strcat_charp(tmp, "<tr><td nowrap>Document Code<td>"); Strcat_charp(tmp, code_to_str(buf->document_code)); #endif /* JP_CHARSET */ - Strcat_charp(tmp, "<tr><td nowrap>Number of line<td>"); + Strcat_charp(tmp, "<tr><td nowrap>Number of lines<td>"); all = buf->allLine; if (all == 0 && buf->lastLine) all = buf->lastLine->linenumber; Strcat(tmp, Sprintf("%d", all)); - Strcat_charp(tmp, "<tr><td nowrap>Transferred byte<td>"); + Strcat_charp(tmp, "<tr><td nowrap>Transferred bytes<td>"); Strcat(tmp, Sprintf("%d", buf->trbyte)); a = retrieveCurrentAnchor(buf); if (a != NULL) { + char *aurl; parseURL2(a->url, &pu, baseURL(buf)); s = parsedURL2Str(&pu); + aurl = html_quote(s->ptr); Strcat_charp(tmp, "<tr><td nowrap>URL of current anchor<td>"); - Strcat_charp(tmp, html_quote(s->ptr)); + Strcat_m_charp(tmp, "<a href=\"", aurl, "\">", aurl, "</a>", NULL); } a = retrieveCurrentImg(buf); if (a != NULL) { |