fix indent
This commit is contained in:
4
anchor.c
4
anchor.c
@@ -1,4 +1,4 @@
|
|||||||
/* $Id: anchor.c,v 1.18 2003/01/06 15:36:57 ukai Exp $ */
|
/* $Id: anchor.c,v 1.19 2003/01/06 15:37:49 ukai Exp $ */
|
||||||
#include "fm.h"
|
#include "fm.h"
|
||||||
#include "myctype.h"
|
#include "myctype.h"
|
||||||
#include "regex.h"
|
#include "regex.h"
|
||||||
@@ -395,7 +395,7 @@ reAnchorNewsheader(Buffer *buf)
|
|||||||
header = header_group;
|
header = header_group;
|
||||||
}
|
}
|
||||||
for (l = buf->firstLine; l != NULL && l->real_linenumber == 0;
|
for (l = buf->firstLine; l != NULL && l->real_linenumber == 0;
|
||||||
l = l->next) {
|
l = l->next) {
|
||||||
p = l->lineBuf;
|
p = l->lineBuf;
|
||||||
if (!IS_SPACE(*p)) {
|
if (!IS_SPACE(*p)) {
|
||||||
search = FALSE;
|
search = FALSE;
|
||||||
|
14
news.c
14
news.c
@@ -1,4 +1,4 @@
|
|||||||
/* $Id: news.c,v 1.6 2003/01/06 15:36:59 ukai Exp $ */
|
/* $Id: news.c,v 1.7 2003/01/06 15:37:50 ukai Exp $ */
|
||||||
#include "fm.h"
|
#include "fm.h"
|
||||||
#include "myctype.h"
|
#include "myctype.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@@ -284,7 +284,7 @@ openNewsStream(ParsedURL *pu)
|
|||||||
return NULL;
|
return NULL;
|
||||||
p = group;
|
p = group;
|
||||||
}
|
}
|
||||||
else { /* <newsgroup>/<message-id or article-number> */
|
else { /* <newsgroup>/<message-id or article-number> */
|
||||||
*p++ = '\0';
|
*p++ = '\0';
|
||||||
news_command(¤t_news, Sprintf("GROUP %s", group)->ptr,
|
news_command(¤t_news, Sprintf("GROUP %s", group)->ptr,
|
||||||
&status);
|
&status);
|
||||||
@@ -294,7 +294,7 @@ openNewsStream(ParsedURL *pu)
|
|||||||
if (strchr(p, '@')) /* <message-id> */
|
if (strchr(p, '@')) /* <message-id> */
|
||||||
news_command(¤t_news, Sprintf("ARTICLE <%s>", p)->ptr,
|
news_command(¤t_news, Sprintf("ARTICLE <%s>", p)->ptr,
|
||||||
&status);
|
&status);
|
||||||
else /* <article-number> */
|
else /* <article-number> */
|
||||||
news_command(¤t_news, Sprintf("ARTICLE %s", p)->ptr,
|
news_command(¤t_news, Sprintf("ARTICLE %s", p)->ptr,
|
||||||
&status);
|
&status);
|
||||||
if (status != 220)
|
if (status != 220)
|
||||||
@@ -338,8 +338,7 @@ readNewsgroup(ParsedURL *pu)
|
|||||||
qgroup = html_quote(group);
|
qgroup = html_quote(group);
|
||||||
group = file_unquote(group);
|
group = file_unquote(group);
|
||||||
page = Sprintf("<title>Newsgroup: %s</title>\n\
|
page = Sprintf("<title>Newsgroup: %s</title>\n\
|
||||||
<h1>Newsgroup: %s</h1>\n<hr>\n",
|
<h1>Newsgroup: %s</h1>\n<hr>\n", qgroup, qgroup);
|
||||||
qgroup, qgroup);
|
|
||||||
|
|
||||||
if (SETJMP(AbortLoading) != 0) {
|
if (SETJMP(AbortLoading) != 0) {
|
||||||
news_close(¤t_news);
|
news_close(¤t_news);
|
||||||
@@ -359,7 +358,7 @@ readNewsgroup(ParsedURL *pu)
|
|||||||
if (list && *list) {
|
if (list && *list) {
|
||||||
if ((p = strchr(list, '-'))) {
|
if ((p = strchr(list, '-'))) {
|
||||||
*p++ = '\0';
|
*p++ = '\0';
|
||||||
end = atoi(p);
|
end = atoi(p);
|
||||||
}
|
}
|
||||||
start = atoi(list);
|
start = atoi(list);
|
||||||
if (start > 0) {
|
if (start > 0) {
|
||||||
@@ -376,8 +375,7 @@ readNewsgroup(ParsedURL *pu)
|
|||||||
start = end - MaxNewsMessage + 1;
|
start = end - MaxNewsMessage + 1;
|
||||||
}
|
}
|
||||||
page = Sprintf("<title>Newsgroup: %s %d-%d</title>\n\
|
page = Sprintf("<title>Newsgroup: %s %d-%d</title>\n\
|
||||||
<h1>Newsgroup: %s %d-%d</h1>\n<hr>\n",
|
<h1>Newsgroup: %s %d-%d</h1>\n<hr>\n", qgroup, start, end, qgroup, start, end);
|
||||||
qgroup, start, end, qgroup, start, end);
|
|
||||||
if (start > first) {
|
if (start > first) {
|
||||||
i = start - MaxNewsMessage;
|
i = start - MaxNewsMessage;
|
||||||
if (i < first)
|
if (i < first)
|
||||||
|
Reference in New Issue
Block a user