1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-22 04:35:58 -04:00

Don't write indent spaces to empty lines

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1085 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-01-07 08:05:14 +00:00 committed by cras
parent 9745db6925
commit a2d9661982

View File

@ -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;
}