Change hyphen (-) to minus (−) character in temperatures for better typography

Edit: Slightly modified by using the encoded character, instead of using it directly, to avoid problems with file-encoding.

Signed-off-by: Jens Lody <jens@jenslody.de>
master
MaximAL 6 years ago committed by Jens Lody
parent f046bbfdfc
commit d9fb790ba2
  1. 2
      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) {

Loading…
Cancel
Save