~indicator-applet-developers/notify-osd/trunk

« back to all changes in this revision

Viewing changes to src/stack.c

  • Committer: CI Train Bot
  • Author(s): Marco Trevisan (Treviño)
  • Date: 2016-04-15 11:58:38 UTC
  • mfrom: (503.1.7 notify-osd)
  • Revision ID: ci-train-bot@canonical.com-20160415115838-tazjcyegcldw8x35
Bubble: don't append new lines when receiving empty bodies

Delay the addition of new lines until there's some real content to append. Fixes: #1570483
Approved by: Andrea Azzarone

Show diffs side-by-side

added added

removed removed

Lines of Context:
682
682
                        g_object_unref(bubble);
683
683
                        bubble = app_bubble;
684
684
                        if (body) {
685
 
                                bubble_append_message_body (bubble, "\n");
686
685
                                bubble_append_message_body (bubble, body);
687
686
                        }
688
687
                }