calendar: Filter out newlines when unexpanded
Enabling line-wrapping of the unexpanded body is not enough to enforce a single line when the text has embedded newlines, so replace these with spaces (this is similar to setting ClutterText:single-line-mode, however that would use a paragraph separator glyph instead).
This commit is contained in:
parent
4253df6463
commit
b18240370d
@ -1044,7 +1044,7 @@ const Message = new Lang.Class({
|
|||||||
|
|
||||||
setBody: function(text) {
|
setBody: function(text) {
|
||||||
this._bodyText = text;
|
this._bodyText = text;
|
||||||
this.bodyLabel.setMarkup(text, this._useBodyMarkup);
|
this.bodyLabel.setMarkup(text.replace(/\n/g, ' '), this._useBodyMarkup);
|
||||||
},
|
},
|
||||||
|
|
||||||
setUseBodyMarkup: function(enable) {
|
setUseBodyMarkup: function(enable) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user