(print_config): When km_comment starts with '#', don't prepend "\n#".
This commit is contained in:
parent
fd461e7bf5
commit
3a9f9f6b3e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue