diff options
author | Timo Sirainen <cras@irssi.org> | 2001-01-07 08:05:14 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-01-07 08:05:14 +0000 |
commit | a2d9661982c95d89553e14feb6f185ff22399dab (patch) | |
tree | f8d1ad894e99218db1f348146dcaf673d1f59e2f /src | |
parent | 9745db6925caec3cd1790fc4e7ca8b943782e423 (diff) | |
download | irssi-a2d9661982c95d89553e14feb6f185ff22399dab.zip |
Don't write indent spaces to empty lines
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1085 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/lib-config/write.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib-config/write.c b/src/lib-config/write.c index bad7e878..446735cd 100644 --- a/src/lib-config/write.c +++ b/src/lib-config/write.c @@ -49,7 +49,8 @@ static int config_write_str(CONFIG_REC *rec, const char *str) strpos = str; while (*strpos != '\0') { /* fill the indentation */ - if (rec->tmp_last_lf && rec->tmp_indent_level > 0) { + if (rec->tmp_last_lf && rec->tmp_indent_level > 0 && + *str != '\n') { if (config_write_indent(rec) == -1) return -1; } |