[polari] roomStack: Escape slashes in template strings
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] roomStack: Escape slashes in template strings
- Date: Thu, 2 May 2019 15:37:56 +0000 (UTC)
commit b904143ee90cba551bbc1c2b53b2d1f54f156c66
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Apr 19 12:38:00 2019 +0200
roomStack: Escape slashes in template strings
... to avoid xgettext tripping over slashes/backticks when
adding/removing template strings.
https://gitlab.gnome.org/GNOME/polari/merge_requests/115
src/roomStack.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/roomStack.js b/src/roomStack.js
index c8a1450..0b9e2ea 100644
--- a/src/roomStack.js
+++ b/src/roomStack.js
@@ -135,7 +135,7 @@ class SavePasswordConfirmationBar extends Gtk.Revealer {
valign: Gtk.Align.CENTER,
wrap: true
});
- this._titleLabel.set_markup(`<b>${title}</b>`);
+ this._titleLabel.set_markup(`<b>${title}<${'/'}b>`);
box.add(this._titleLabel);
let accountName = this._room.account.display_name;
@@ -172,7 +172,7 @@ class ChatPlaceholder extends Gtk.Overlay {
halign: Gtk.Align.START,
margin_start: 14
});
- title.label = `<span letter_spacing="4500">${_('Polari')}</span>`;
+ title.label = `<span letter_spacing="4500">${_('Polari')}<${'/'}span>`;
title.get_style_context().add_class('polari-background-title');
let description = new Gtk.Label({
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]