From d9fb790ba271dbcb71482345fef4282bd66a13b9 Mon Sep 17 00:00:00 2001 From: MaximAL Date: Fri, 8 Feb 2019 10:26:36 +0000 Subject: [PATCH] =?UTF-8?q?Change=20hyphen=20(-)=20to=20minus=20(=E2=88=92?= =?UTF-8?q?)=20character=20in=20temperatures=20for=20better=20typography?= =?UTF-8?q?=20Edit:=20Slightly=20modified=20by=20using=20the=20encoded=20c?= =?UTF-8?q?haracter,=20instead=20of=20using=20it=20directly,=20to=20avoid?= =?UTF-8?q?=20problems=20with=20file-encoding.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jens Lody --- src/extension.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension.js b/src/extension.js index 3e291df..f9c5622 100644 --- a/src/extension.js +++ b/src/extension.js @@ -1368,7 +1368,7 @@ const OpenweatherMenuButton = new Lang.Class({ temperature = this.toNewton(temperature); break; } - return parseFloat(temperature).toLocaleString(this.locale) + ' ' + this.unit_to_unicode(); + return parseFloat(temperature).toLocaleString(this.locale).replace('-', '\u2212') + ' ' + this.unit_to_unicode(); }, formatWind: function(speed, direction) {