From b0a9d27a20d3d474b0874dc6adcc203a423160fd Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Sun, 7 Jun 2020 18:48:49 +0200 Subject: [PATCH] v2: fixed alignment problems for nerdphonts (#363) --- lib/view/v2.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/view/v2.py b/lib/view/v2.py index b3f51b2..427e7fb 100644 --- a/lib/view/v2.py +++ b/lib/view/v2.py @@ -291,6 +291,7 @@ def draw_astronomical(city_name, geo_data, config): if config.get("view") in ["v2n", "v2d"]: moon_phases = constants.MOON_PHASES_WI + moon_phases = [" %s" % x for x in moon_phases] else: moon_phases = constants.MOON_PHASES @@ -330,8 +331,8 @@ def draw_emoji(data, config): emoji = weather_symbol.get( constants.WWO_CODE.get( str(int(i)), "Unknown")) - space = " "*(3-weather_symbol_width_vte.get(emoji, 2)) - answer += emoji + space + space = " "*(3-weather_symbol_width_vte.get(emoji, 1)) + answer += space[:1] + emoji + space[1:] answer += "\n" return answer # }}}