mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05: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:
parent
9745db6925
commit
a2d9661982
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user