empty lines and leading spaces are not shown in messages

Bug #1366592 reported by Kajetan
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Band-aids for Ubuntu Phone
Fix Released
Undecided
Devid Antonio Filoni
Canonical System Image
Fix Released
High
Bill Filler
messaging-app (Ubuntu)
Fix Released
High
Tiago Salem Herrmann

Bug Description

It seems that newlines in messages are sent and received, but they are not shown in the messaging-app (I would expect that they would be shown). However, the newline is shown in the notification bubble (see attached screenshot) and in the Notification center.

OS: Ubuntu 14.10 (r203)

Version of the app:
$ apt-cache policy messaging-app
messaging-app:
  Installed: 0.1+14.10.20140813.2-0ubuntu1
  Candidate: 0.1+14.10.20140828.3-0ubuntu1
  Version table:
     0.1+14.10.20140828.3-0ubuntu1 0
        500 http://ports.ubuntu.com/ubuntu-ports/ utopic/universe armhf Packages
 *** 0.1+14.10.20140813.2-0ubuntu1 0
        100 /var/lib/dpkg/status

Tags: ota-1 rtm14

Related branches

Revision history for this message
Kajetan (kajetan-krischan) wrote :
Revision history for this message
Bill Filler (bfiller) wrote :

using the latest rtm build 59 I can confirm slightly different, but still broken behavior.
The notification bubble now appends the lines together. The messaging-app just ignores the blank line

Changed in messaging-app (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Tiago Salem Herrmann (tiagosh)
tags: added: rtm14
tags: added: ota-1
Revision history for this message
Sebastien Bacher (seb128) wrote :

some reports point as well that leading spaces are cleared out in the same way...

Changed in messaging-app (Ubuntu):
importance: Medium → High
summary: - empty lines are not shown in messages
+ empty lines and leading spaces are not shown in messages
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package messaging-app - 0.1+15.10.20150923.1-0ubuntu1

---------------
messaging-app (0.1+15.10.20150923.1-0ubuntu1) wily; urgency=medium

  [ CI Train Bot ]
  * New rebuild forced.

  [ Gustavo Pichorim Boiko ]
  * Increase the touch area of the send and attach buttons. (LP:
    #1488984)

  [ Sebastien Bacher ]
  * display empty lines and leading spaces (LP: #1366592)

  [ Tiago Salem Herrmann ]
  * Fix autopilot tests.

 -- Gustavo Pichorim Boiko <email address hidden> Wed, 23 Sep 2015 15:33:42 +0000

Changed in messaging-app (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

Reopening as it was partly reverted

Changed in messaging-app (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

trcak for the leading spaces issue

Changed in canonical-devices-system-image:
assignee: nobody → Bill Filler (bfiller)
importance: Undecided → High
milestone: none → ww46-2015
status: New → Confirmed
Bill Filler (bfiller)
Changed in canonical-devices-system-image:
milestone: ww46-2015 → backlog
Revision history for this message
Julia Palandri (julia-palandri) wrote :

confirming new lines can be seen both in notification and in messaging app; while spaces at the beginning of a line can only be seen in the notification but are cut in the messaging app. However, spaces are shown in the index of messages (i.e. only in the conversation are not shown)

Changed in band-aids-uphone:
assignee: nobody → Devid Antonio Filoni (d.filoni)
status: New → In Progress
Revision history for this message
Devid Antonio Filoni (d.filoni) wrote :

I requested a merge for this bug. I'm not sure which is the right status to set now, I'm marking it as Fix committed, please correct it if wrong.

Changed in band-aids-uphone:
status: In Progress → Fix Committed
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

@David I commented on the MR, for me there is no change in behavior.

Changed in band-aids-uphone:
status: Fix Committed → In Progress
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

the fix works, testing now with urls and phone numbers to ensure they dont regress

Changed in band-aids-uphone:
status: In Progress → Fix Committed
Changed in canonical-devices-system-image:
status: Confirmed → Fix Committed
milestone: backlog → 13
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package messaging-app - 0.1+16.10.20160819-0ubuntu1

---------------
messaging-app (0.1+16.10.20160819-0ubuntu1) yakkety; urgency=medium

  [ Devid Antonio Filoni ]
  * Preserve empty lines and leading spaces. (LP: #1366592)

  [ Pat McGowan ]
  * This adds support for showing the current character count and number
    of messages to be sent via SMS. It includes a new label on top of
    the text area showing number of characters / 160 (number of
    messages). It is shown once the message is over 1 line in length,
    per other systems. (LP: #1278790)

  [ Tiago Salem Herrmann ]
  * Share text only if there is no url in the content-hub transfer. (LP:
    #1613338)

 -- Tiago Salem Herrmann <email address hidden> Fri, 19 Aug 2016 15:15:35 +0000

Changed in messaging-app (Ubuntu):
status: Confirmed → Fix Released
Changed in canonical-devices-system-image:
status: Fix Committed → Fix Released
Changed in band-aids-uphone:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.