# HG changeset patch # User Emmanuel Gil Peyrot # Date 1535212458 -7200 # Node ID 38892f9f3fe987697534f4e0081b716502858f10 # Parent 29a4d8b63fb1f4fd881c44cb21fe665c6df8c5d8 mod_muc_badge: Add spaces around each part of the text. diff -r 29a4d8b63fb1 -r 38892f9f3fe9 mod_muc_badge/mod_muc_badge.lua --- a/mod_muc_badge/mod_muc_badge.lua Sat Aug 25 17:42:13 2018 +0200 +++ b/mod_muc_badge/mod_muc_badge.lua Sat Aug 25 17:54:18 2018 +0200 @@ -76,8 +76,8 @@ for _ in pairs(room._occupants) do count = count + 1; end - local badge_label = room:get_name(); - local badge_count = string.format(number, count); + local badge_label = (" %s "):format(room:get_name()); + local badge_count = (" %s "):format(string.format(number, count)); local response = event.response; response.headers.content_type = "image/svg+xml";