diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-03-27 15:46:59 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-03-27 15:47:19 +0200 |
commit | f271b4a96b231b6a399d93d2d36bf397c18a42e2 (patch) | |
tree | 4fb6999fad19739bd8ef53cac42135bb33ec10ba /src | |
parent | 197f36984724433a51343d299f4f3d31173f89aa (diff) |
Fix missing newlines in k_info description texts
Diffstat (limited to 'src')
-rw-r--r-- | src/init1.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/init1.cc b/src/init1.cc index 2a8c8c3c..5decdfaa 100644 --- a/src/init1.cc +++ b/src/init1.cc @@ -3735,8 +3735,14 @@ errr init_k_info_txt(FILE *fp) /* Acquire the text */ s = buf + 2; - /* Append description */ - strappend(&k_ptr->text, s); + if (!k_ptr->text) + { + k_ptr->text = my_strdup(s); + } + else + { + strappend(&k_ptr->text, format("\n%s", s)); + } /* Next... */ continue; |