changeset 3284:29a4d8b63fb1

mod_muc_badge: Preserve spaces in SVG, fixes displaying nicer borders.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 25 Aug 2018 17:42:13 +0200
parents 97b8b07ae1d1
children 38892f9f3fe9
files mod_muc_badge/mod_muc_badge.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_muc_badge/mod_muc_badge.lua	Sat Aug 25 17:39:41 2018 +0200
+++ b/mod_muc_badge/mod_muc_badge.lua	Sat Aug 25 17:42:13 2018 +0200
@@ -49,7 +49,7 @@
     <path fill="#fe7d37" d="M{labelwidth} 0h{countwidth}v20H{labelwidth}z"/>
     <path fill="url(#b)" d="M0 0h{width}v20H0z"/>
   </g>
-  <g fill="#fff" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
+  <g fill="#fff" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11" xml:space="preserve">
     <text fill="#010101" y="14" x="0" textLength="{labelwidth}">{label}</text>
     <text y="13" x="0" textLength="{labelwidth}">{label}</text>
     <text fill="#010101" y="14" x="{labelwidth}" textLength="{countwidth}">{number}</text>