From 36b84627961553c9423419e6c3d317b8fd79d665 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Wed, 27 Mar 2024 13:39:36 -0700 Subject: [PATCH] status_emoji: Remove extra space with Handlebars whitespace control. This gets rendered into a comma-separated list, and the extra space was ending up before the comma. Signed-off-by: Anders Kaseorg --- web/templates/status_emoji.hbs | 16 ++++++++-------- web/templates/user_with_status_icon.hbs | 3 ++- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/web/templates/status_emoji.hbs b/web/templates/status_emoji.hbs index 7986c64967..f9558148d1 100644 --- a/web/templates/status_emoji.hbs +++ b/web/templates/status_emoji.hbs @@ -1,12 +1,12 @@ -{{#if .}} -{{#if emoji_alt_code}} +{{~#if . ~}} +{{~#if emoji_alt_code ~}}  :{{emoji_name}}: -{{else if still_url}} +{{~else if still_url ~}} -{{else if url}} -{{!-- note that we have no still_url --}} +{{~else if url ~}} +{{~!-- note that we have no still_url --~}} -{{else if emoji_name}} +{{~else if emoji_name ~}} -{{/if}} -{{/if}} +{{~/if ~}} +{{~/if ~}} diff --git a/web/templates/user_with_status_icon.hbs b/web/templates/user_with_status_icon.hbs index 2d6d253170..0a5052bdde 100644 --- a/web/templates/user_with_status_icon.hbs +++ b/web/templates/user_with_status_icon.hbs @@ -1,4 +1,5 @@ {{name}} - {{> status_emoji status_emoji_info}} + {{~> status_emoji status_emoji_info ~}} +{{~!-- --~}}