comparison mod_muc_badge/mod_muc_badge.lua @ 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 cd23446eaff1
children 38892f9f3fe9
comparison
equal deleted inserted replaced
3283:97b8b07ae1d1 3284:29a4d8b63fb1
47 <g clip-path="url(#a)"> 47 <g clip-path="url(#a)">
48 <path fill="#555" d="M0 0h{labelwidth}v20H0z"/> 48 <path fill="#555" d="M0 0h{labelwidth}v20H0z"/>
49 <path fill="#fe7d37" d="M{labelwidth} 0h{countwidth}v20H{labelwidth}z"/> 49 <path fill="#fe7d37" d="M{labelwidth} 0h{countwidth}v20H{labelwidth}z"/>
50 <path fill="url(#b)" d="M0 0h{width}v20H0z"/> 50 <path fill="url(#b)" d="M0 0h{width}v20H0z"/>
51 </g> 51 </g>
52 <g fill="#fff" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"> 52 <g fill="#fff" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11" xml:space="preserve">
53 <text fill="#010101" y="14" x="0" textLength="{labelwidth}">{label}</text> 53 <text fill="#010101" y="14" x="0" textLength="{labelwidth}">{label}</text>
54 <text y="13" x="0" textLength="{labelwidth}">{label}</text> 54 <text y="13" x="0" textLength="{labelwidth}">{label}</text>
55 <text fill="#010101" y="14" x="{labelwidth}" textLength="{countwidth}">{number}</text> 55 <text fill="#010101" y="14" x="{labelwidth}" textLength="{countwidth}">{number}</text>
56 <text y="13" x="{labelwidth}" textLength="{countwidth}">{number}</text> 56 <text y="13" x="{labelwidth}" textLength="{countwidth}">{number}</text>
57 </g> 57 </g>