Signed-off-by: Denys Vlasenko dvlasenk@redhat.com --- src/lib/make_descr.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-)
diff --git a/src/lib/make_descr.c b/src/lib/make_descr.c index cd5a049..30eb28b 100644 --- a/src/lib/make_descr.c +++ b/src/lib/make_descr.c @@ -85,18 +85,14 @@ char *make_description(problem_data_t *problem_data, char **names_to_skip, continue;
if ((item->flags & CD_FLAG_TXT) - && strlen(item->content) <= max_text_size + && !strchr(item->content, '\n') ) { char *formatted = problem_item_format(item); char *output = formatted ? formatted : item->content; - char *eol = strchr(output, '\n'); - if (!eol) - { - int pad = 16 - (strlen(key) + 2); - if (pad < 0) pad = 0; - strbuf_append_strf(buf_dsc, "%s: %*s%s\n", key, pad, "", output); - empty = false; - } + int pad = 16 - (strlen(key) + 2); + if (pad < 0) pad = 0; + strbuf_append_strf(buf_dsc, "%s: %*s%s\n", key, pad, "", output); + empty = false; free(formatted); } }
Pushed. Thank you!
Please, try to use correct ticket ids. #690 issue comes from ABRT's repository therefore you must write abrt/abrt#690
Please, read this articles. It will save much work for all of us :) https://help.github.com/articles/closing-issues-via-commit-messages
crash-catcher@lists.fedorahosted.org