Merge lp:~tiagosh/messaging-app/revert_nbsp_replace into lp:messaging-app

Proposed by Tiago Salem Herrmann
Status: Merged
Approved by: Bill Filler
Approved revision: 447
Merged at revision: 446
Proposed branch: lp:~tiagosh/messaging-app/revert_nbsp_replace
Merge into: lp:messaging-app
Diff against target: 12 lines (+0/-2)
1 file modified
src/qml/MessageBubble.qml (+0/-2)
To merge this branch: bzr merge lp:~tiagosh/messaging-app/revert_nbsp_replace
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing
Ubuntu Phablet Team Pending
Review via email: mp+273539@code.launchpad.net

Commit message

Revert patch that replaces empty spaces by  , as it breaks word wrap.

Description of the change

Revert patch that replaces empty spaces by  , as it breaks word wrap.

To post a comment you must log in.
447. By Tiago Salem Herrmann

Replace each \n by one <br />

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/qml/MessageBubble.qml'
2--- src/qml/MessageBubble.qml 2015-08-26 14:22:14 +0000
3+++ src/qml/MessageBubble.qml 2015-10-06 15:15:40 +0000
4@@ -52,8 +52,6 @@
5 function parseText(text) {
6 // remove html tags
7 text = text.replace(/</g,'&lt;').replace(/>/g,'<tt>&gt;</tt>');
8- // replace spaces
9- text = text.replace(/ /g, '&nbsp;');
10 // replace line breaks
11 text = text.replace(/\n/g, '<br />');
12 // check for links

Subscribers

People subscribed via source and target branches