(print_config): When km_comment starts with '#', don't prepend "\n#".

This commit is contained in:
Markus Armbruster 2006-02-18 16:12:50 +00:00
parent fd461e7bf5
commit 3a9f9f6b3e

View file

@ -180,7 +180,7 @@ print_config(FILE *fp)
fprintf(fp, "# Empire Configuration File:\n");
for (kp = configkeys; kp->km_key; kp++) {
if (kp->km_comment) {
if (kp->km_comment[0] != '\n')
if (kp->km_comment[0] != '\n' && kp->km_comment[0] != '#')
fprintf(fp, "\n# ");
fprintf(fp, "%s\n", kp->km_comment);
}