From a2d9661982c95d89553e14feb6f185ff22399dab Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 7 Jan 2001 08:05:14 +0000 Subject: Don't write indent spaces to empty lines git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1085 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/lib-config/write.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib-config/write.c') 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; } -- cgit v1.2.3