Skip to content

Commit

Permalink
签名档使用等宽字体
Browse files Browse the repository at this point in the history
  • Loading branch information
IronBlood committed Jun 1, 2014
1 parent ab21844 commit 95b041b
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 3 deletions.
11 changes: 10 additions & 1 deletion nju09/bbscon.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ fshowcon(FILE * output, char *filename, int show_iframe)
{
char *ptr, buf[512];
FILE *fp;
int lastq = 0, ano = 0;
int lastq = 0, ano = 0, in_sig = 0;
if (show_iframe != 2) {
// fprintf(output, "<table width=100%% border=1><tr>");
fprintf(output, "<tr><td width=40 class=\"level1\">&nbsp;</td>\n<td class=\"level1\"><br><TABLE width=\"95%\" cellpadding=5 cellspacing=0><TBODY>\n<tr><td class=tdtitletheme>&nbsp;</td></tr><tr>\n");
Expand Down Expand Up @@ -250,11 +250,20 @@ fshowcon(FILE * output, char *filename, int show_iframe)
fprintf(output, "</font>");
lastq = 0;
}

if (!strncmp(buf, "--\n", 3)) {
if (!in_sig) {
fprintf(output, "<div class=\"con_sig\">");
in_sig = 1;
}
}
fhhprintf(output, "%s", buf);
}
printf("</div>\n");
if (lastq)
fprintf(output, "</font>");
if (in_sig)
fprintf(output, "</div>");
fclose(fp);
if (show_iframe != 2)
fprintf(output, "\n</td></TR></TBODY></TABLE><br></td></tr>\n");
Expand Down
4 changes: 3 additions & 1 deletion nju09/html/images/blab.css
Original file line number Diff line number Diff line change
Expand Up @@ -552,4 +552,6 @@ tr.d0 td{
.h34{color:#0000ff;}
.h35{color:#ff00ff;}
.h36{color:#40e0d0;}
.h37{color:#000000;}
.h37{color:#000000;}
.con_sig{font-family: Consolas, Monaco, "Courier New", Courier, monospace, "Lucida Console"; line-height: normal !important;}

4 changes: 3 additions & 1 deletion nju09/html/images/blas.css
Original file line number Diff line number Diff line change
Expand Up @@ -554,4 +554,6 @@ tr.d0 td{
.h34{color:#0000ff;}
.h35{color:#ff00ff;}
.h36{color:#40e0d0;}
.h37{color:#000000;}
.h37{color:#000000;}
.con_sig{font-family: Consolas, Monaco, "Courier New", Courier, monospace, "Lucida Console"; line-height: normal !important;}

2 changes: 2 additions & 0 deletions nju09/html/images/blub.css
Original file line number Diff line number Diff line change
Expand Up @@ -560,3 +560,5 @@ tr.d0 td{
.h35{color:#ff00ff;}
.h36{color:#40e0d0;}
.h37{color:#000000;}
.con_sig{font-family: Consolas, Monaco, "Courier New", Courier, monospace, "Lucida Console"; line-height: normal !important;}

2 changes: 2 additions & 0 deletions nju09/html/images/blus.css
Original file line number Diff line number Diff line change
Expand Up @@ -563,3 +563,5 @@ tr.d0 td{
.h35{color:#ff00ff;}
.h36{color:#40e0d0;}
.h37{color:#000000;}
.con_sig{font-family: Consolas, Monaco, "Courier New", Courier, monospace, "Lucida Console"; line-height: normal !important;}

2 changes: 2 additions & 0 deletions nju09/html/images/greb.css
Original file line number Diff line number Diff line change
Expand Up @@ -559,3 +559,5 @@ tr.d0 td{
.h35{color:#ff00ff;}
.h36{color:#40e0d0;}
.h37{color:#000000;}
.con_sig{font-family: Consolas, Monaco, "Courier New", Courier, monospace, "Lucida Console"; line-height: normal !important;}

2 changes: 2 additions & 0 deletions nju09/html/images/gres.css
Original file line number Diff line number Diff line change
Expand Up @@ -563,3 +563,5 @@ tr.d0 td{
.h35{color:#ff00ff;}
.h36{color:#40e0d0;}
.h37{color:#000000;}
.con_sig{font-family: Consolas, Monaco, "Courier New", Courier, monospace, "Lucida Console"; line-height: normal !important;}

2 changes: 2 additions & 0 deletions nju09/html/images/orab.css
Original file line number Diff line number Diff line change
Expand Up @@ -560,3 +560,5 @@ tr.d0 td{
.h35{color:#ff00ff;}
.h36{color:#40e0d0;}
.h37{color:#000000;}
.con_sig{font-family: Consolas, Monaco, "Courier New", Courier, monospace, "Lucida Console"; line-height: normal !important;}

1 change: 1 addition & 0 deletions nju09/html/images/oras.css
Original file line number Diff line number Diff line change
Expand Up @@ -587,4 +587,5 @@ tr.d0 td{
.h35{color:#ff00ff;}
.h36{color:#40e0d0;}
.h37{color:#000000;}
.con_sig{font-family: Consolas, Monaco, "Courier New", Courier, monospace, "Lucida Console"; line-height: normal !important;}

0 comments on commit 95b041b

Please sign in to comment.