(print_config): Undo rev. 1.17's incorrect simplification of
km_comment printing.
This commit is contained in:
parent
0e7af91e5e
commit
0ac1b7707c
1 changed files with 5 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue