fix indent
This commit is contained in:
25
map.c
25
map.c
@@ -1,4 +1,4 @@
|
|||||||
/* $Id: map.c,v 1.23 2003/01/10 16:58:31 ukai Exp $ */
|
/* $Id: map.c,v 1.24 2003/01/10 16:59:32 ukai Exp $ */
|
||||||
/*
|
/*
|
||||||
* client-side image maps
|
* client-side image maps
|
||||||
*/
|
*/
|
||||||
@@ -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);
|
Strcat_m_charp(html, " ", q, "</a></pre_int><br>\n", NULL);
|
||||||
#ifdef USE_SSL
|
#ifdef USE_SSL
|
||||||
if (frame.body->ssl_certificate)
|
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),
|
html_quote(frame.body->ssl_certificate),
|
||||||
"</pre></blockquote>\n", NULL);
|
"</pre></blockquote>\n", NULL);
|
||||||
#endif
|
#endif
|
||||||
@@ -530,8 +531,7 @@ page_info_panel(Buffer *buf)
|
|||||||
"<tr valign=top><td nowrap>Number of lines<td>",
|
"<tr valign=top><td nowrap>Number of lines<td>",
|
||||||
Sprintf("%d", all)->ptr,
|
Sprintf("%d", all)->ptr,
|
||||||
"<tr valign=top><td nowrap>Transferred bytes<td>",
|
"<tr valign=top><td nowrap>Transferred bytes<td>",
|
||||||
Sprintf("%d", buf->trbyte)->ptr,
|
Sprintf("%d", buf->trbyte)->ptr, NULL);
|
||||||
NULL);
|
|
||||||
|
|
||||||
a = retrieveCurrentAnchor(buf);
|
a = retrieveCurrentAnchor(buf);
|
||||||
if (a != NULL) {
|
if (a != NULL) {
|
||||||
@@ -539,24 +539,27 @@ page_info_panel(Buffer *buf)
|
|||||||
parseURL2(a->url, &pu, baseURL(buf));
|
parseURL2(a->url, &pu, baseURL(buf));
|
||||||
s = parsedURL2Str(&pu);
|
s = parsedURL2Str(&pu);
|
||||||
aurl = html_quote(s->ptr);
|
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);
|
aurl, "\">", aurl, "</a>", NULL);
|
||||||
}
|
}
|
||||||
a = retrieveCurrentImg(buf);
|
a = retrieveCurrentImg(buf);
|
||||||
if (a != NULL) {
|
if (a != NULL) {
|
||||||
parseURL2(a->url, &pu, baseURL(buf));
|
parseURL2(a->url, &pu, baseURL(buf));
|
||||||
s = parsedURL2Str(&pu);
|
s = parsedURL2Str(&pu);
|
||||||
Strcat_m_charp(tmp, "<tr valign=top><td nowrap>URL of current image<td><a href=\"",
|
Strcat_m_charp(tmp,
|
||||||
html_quote(s->ptr), "\">", html_quote(s->ptr),
|
"<tr valign=top><td nowrap>URL of current image<td><a href=\"",
|
||||||
"</a>", NULL);
|
html_quote(s->ptr), "\">", html_quote(s->ptr), "</a>",
|
||||||
|
NULL);
|
||||||
}
|
}
|
||||||
a = retrieveCurrentForm(buf);
|
a = retrieveCurrentForm(buf);
|
||||||
if (a != NULL) {
|
if (a != NULL) {
|
||||||
FormItemList *fi = (FormItemList *)a->url;
|
FormItemList *fi = (FormItemList *)a->url;
|
||||||
Strcat_m_charp(tmp, "<tr valign=top><td nowrap>Method/type of current form <td>",
|
Strcat_m_charp(tmp,
|
||||||
|
"<tr valign=top><td nowrap>Method/type of current form <td>",
|
||||||
html_quote(form2str(fi)), NULL);
|
html_quote(form2str(fi)), NULL);
|
||||||
if (fi->parent->method == FORM_METHOD_INTERNAL &&
|
if (fi->parent->method == FORM_METHOD_INTERNAL
|
||||||
!Strcmp_charp(fi->parent->action, "map"))
|
&& !Strcmp_charp(fi->parent->action, "map"))
|
||||||
append_map_info(buf, tmp, fi->parent->item);
|
append_map_info(buf, tmp, fi->parent->item);
|
||||||
}
|
}
|
||||||
Strcat_charp(tmp, "</table>\n");
|
Strcat_charp(tmp, "</table>\n");
|
||||||
|
Reference in New Issue
Block a user