w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit e2e9336edf325fbefbbcd953ce6e8a00939c7ee4
parent bbbd5cfa301349d34804e61c45c279d6cc25a024
Author: ukai <ukai>
Date:   Fri, 10 Jan 2003 16:59:32 +0000

fix indent

Diffstat:
Mmap.c | 25++++++++++++++-----------
1 file changed, 14 insertions(+), 11 deletions(-)

diff --git a/map.c b/map.c @@ -478,7 +478,8 @@ append_frame_info(Buffer *buf, Str html, struct frameset *set, int level) Strcat_m_charp(html, " ", q, "</a></pre_int><br>\n", NULL); #ifdef USE_SSL if (frame.body->ssl_certificate) - Strcat_m_charp(html, "<blockquote><h2>SSL certificate</h2><pre>\n", + Strcat_m_charp(html, + "<blockquote><h2>SSL certificate</h2><pre>\n", html_quote(frame.body->ssl_certificate), "</pre></blockquote>\n", NULL); #endif @@ -515,7 +516,7 @@ page_info_panel(Buffer *buf) if (all == 0 && buf->lastLine) all = buf->lastLine->linenumber; Strcat_m_charp(tmp, "<table cellpadding=0>", - "<tr valign=top><td nowrap>Title<td>", + "<tr valign=top><td nowrap>Title<td>", html_quote(buf->buffername), "<tr valign=top><td nowrap>Current URL<td>", html_quote(parsedURL2Str(&buf->currentURL)->ptr), @@ -530,8 +531,7 @@ page_info_panel(Buffer *buf) "<tr valign=top><td nowrap>Number of lines<td>", Sprintf("%d", all)->ptr, "<tr valign=top><td nowrap>Transferred bytes<td>", - Sprintf("%d", buf->trbyte)->ptr, - NULL); + Sprintf("%d", buf->trbyte)->ptr, NULL); a = retrieveCurrentAnchor(buf); if (a != NULL) { @@ -539,24 +539,27 @@ page_info_panel(Buffer *buf) parseURL2(a->url, &pu, baseURL(buf)); s = parsedURL2Str(&pu); aurl = html_quote(s->ptr); - Strcat_m_charp(tmp, "<tr valign=top><td nowrap>URL of current anchor<td><a href=\"", + Strcat_m_charp(tmp, + "<tr valign=top><td nowrap>URL of current anchor<td><a href=\"", aurl, "\">", aurl, "</a>", NULL); } a = retrieveCurrentImg(buf); if (a != NULL) { parseURL2(a->url, &pu, baseURL(buf)); s = parsedURL2Str(&pu); - Strcat_m_charp(tmp, "<tr valign=top><td nowrap>URL of current image<td><a href=\"", - html_quote(s->ptr), "\">", html_quote(s->ptr), - "</a>", NULL); + Strcat_m_charp(tmp, + "<tr valign=top><td nowrap>URL of current image<td><a href=\"", + html_quote(s->ptr), "\">", html_quote(s->ptr), "</a>", + NULL); } a = retrieveCurrentForm(buf); if (a != NULL) { FormItemList *fi = (FormItemList *)a->url; - Strcat_m_charp(tmp, "<tr valign=top><td nowrap>Method/type of current form&nbsp;<td>", + Strcat_m_charp(tmp, + "<tr valign=top><td nowrap>Method/type of current form&nbsp;<td>", html_quote(form2str(fi)), NULL); - if (fi->parent->method == FORM_METHOD_INTERNAL && - !Strcmp_charp(fi->parent->action, "map")) + if (fi->parent->method == FORM_METHOD_INTERNAL + && !Strcmp_charp(fi->parent->action, "map")) append_map_info(buf, tmp, fi->parent->item); } Strcat_charp(tmp, "</table>\n");