fix readme linebreaks
This commit is contained in:
parent
e140649ccf
commit
b42009b3b9
@ -9,9 +9,9 @@ int main(int argc, char **argv)
|
||||
char *footer = stb_file("README.footer.md", &flen); // stb_file - read file into malloc()ed buffer
|
||||
char **list = stb_stringfile("README.list", &listlen); // stb_stringfile - read file lines into malloced array of strings
|
||||
|
||||
FILE *f = fopen("../README.md", "w");
|
||||
FILE *f = fopen("../README.md", "wb");
|
||||
|
||||
fprintf(f, "<!--- THIS FILE IS AUTOMATICALLY GENERATED, DO NOT CHANGE IT BY HAND --->\n\n");
|
||||
fprintf(f, "<!--- THIS FILE IS AUTOMATICALLY GENERATED, DO NOT CHANGE IT BY HAND --->\r\n\r\n");
|
||||
fwrite(header, 1, hlen, f);
|
||||
|
||||
for (i=0; i < listlen; ++i) {
|
||||
@ -50,12 +50,12 @@ int main(int argc, char **argv)
|
||||
total_lines += num_lines;
|
||||
for (j=2; j < num; ++j)
|
||||
fprintf(f, " | %s", tokens[j]);
|
||||
fprintf(f, "\n");
|
||||
fprintf(f, "\r\n");
|
||||
}
|
||||
|
||||
fprintf(f, "\n");
|
||||
fprintf(f, "Total libraries: %d \n", listlen);
|
||||
fprintf(f, "Total lines of C code: %d\n\n", total_lines);
|
||||
fprintf(f, "\r\n");
|
||||
fprintf(f, "Total libraries: %d\r\n", listlen);
|
||||
fprintf(f, "Total lines of C code: %d\r\n\r\n", total_lines);
|
||||
|
||||
fwrite(footer, 1, flen, f);
|
||||
fclose(f);
|
||||
|
Loading…
Reference in New Issue
Block a user