Module: check_mk
Branch: master
Commit: 3923075f1aca9bff94bc9d9dcfe3e87413019c32
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3923075f1aca9b…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Oct 28 20:23:16 2015 +0100
Fixed broken icon css classes after yesterdays cleanups
---
web/htdocs/htmllib.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index 8a8dc92..15d506d 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -399,7 +399,7 @@ class html:
align = middle and ' align=absmiddle' or ''
title = help and ' title="%s"' % self.attrencode(help) or
""
id = id and ' id="%s"' % id or ''
- cssclass = cssclass and ' ' + cssclass
+ cssclass = cssclass and (" " + cssclass) or ""
return '<img src="%s" class="icon%s"%s%s%s />'
% \
(self.detect_icon_path(icon_name), cssclass, align, title, id)