(print_config): Undo rev. 1.17's incorrect simplification of

km_comment printing.
This commit is contained in:
Markus Armbruster 2004-12-16 21:56:17 +00:00
parent 0e7af91e5e
commit 0ac1b7707c

View file

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