Skip to content

Commit 970d71f

Browse files
Jose Kahanjkbzh
authored andcommitted
code cleaning: removed #if 0 block, added missing ; to generated css rules
1 parent 0453fc6 commit 970d71f

File tree

1 file changed

+8
-22
lines changed

1 file changed

+8
-22
lines changed

src/printfile.c

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -337,26 +337,12 @@ void print_main_header(FILE *fp, bool index_header, char *label, char *name,
337337
/*
338338
* if style sheets are not specified, emit a default one.
339339
*/
340-
/* @@ JK: the old css */
341-
#if 0
342-
fprintf(fp, "<style type=\"text/css\">\n");
343-
fprintf(fp, "body {color: black; background: #ffffff}\n");
344-
fprintf(fp, "h1.center {text-align: center}\n");
345-
fprintf(fp, "div.center {text-align: center}\n");
346-
fprintf(fp, ".quotelev1 {color : #990099}\n");
347-
fprintf(fp, ".quotelev2 {color : #ff7700}\n");
348-
fprintf(fp, ".quotelev3 {color : #007799}\n");
349-
fprintf(fp, ".quotelev4 {color : #95c500}\n");
350-
fprintf(fp, ".headers {background : #e0e0d0}\n");
351-
fprintf(fp, ".links {background : #f8f8e0}\n");
352-
fprintf(fp, "</style>\n");
353-
#endif
354-
/* @@ JK: the new css */
340+
/* @@ JK: the new css */
355341
fprintf (fp, "<style type=\"text/css\">\n");
356342

357343
fprintf (fp,"/*<![CDATA[*/\n");
358344
fprintf (fp, "/* To be incorporated in the main stylesheet, don't code it in hypermail! */\n");
359-
fprintf (fp, "body {color: black; background: #ffffff}\n");
345+
fprintf (fp, "body {color: black; background: #ffffff;}\n");
360346
fprintf (fp, "dfn {font-weight: bold;}\n");
361347
fprintf (fp, "pre { background-color:inherit;}\n");
362348
fprintf (fp, ".head { border-bottom:1px solid black;}\n");
@@ -369,13 +355,13 @@ void print_main_header(FILE *fp, bool index_header, char *label, char *name,
369355
fprintf (fp, "map ul {list-style:none;}\n");
370356
fprintf (fp, "#mid { font-size:0.9em;}\n");
371357
fprintf (fp, "#received { float:right;}\n");
372-
fprintf (fp, "address { font-style:inherit ;}\n");
358+
fprintf (fp, "address { font-style:inherit;}\n");
373359
fprintf (fp, "/*]]>*/\n");
374-
fprintf(fp, ".quotelev1 {color : #990099}\n");
375-
fprintf(fp, ".quotelev2 {color : #ff7700}\n");
376-
fprintf(fp, ".quotelev3 {color : #007799}\n");
377-
fprintf(fp, ".quotelev4 {color : #95c500}\n");
378-
fprintf (fp, ".period {font-weight: bold}\n");
360+
fprintf(fp, ".quotelev1 {color : #990099;}\n");
361+
fprintf(fp, ".quotelev2 {color : #ff7700;}\n");
362+
fprintf(fp, ".quotelev3 {color : #007799;}\n");
363+
fprintf(fp, ".quotelev4 {color : #95c500;}\n");
364+
fprintf (fp, ".period {font-weight: bold;}\n");
379365
fprintf (fp, "</style>\n");
380366
}
381367

0 commit comments

Comments
 (0)