Module: check_mk
Branch: master
Commit: b54213b5ef7b460304c1de2e88e473d2ea3da908
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b54213b5ef7b46…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Jan 12 09:51:27 2012 +0100
ValueSpec: join unit with
---
web/htdocs/valuespec.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/valuespec.py b/web/htdocs/valuespec.py
index 669beb7..2f4863c 100644
--- a/web/htdocs/valuespec.py
+++ b/web/htdocs/valuespec.py
@@ -186,7 +186,7 @@ class Integer(ValueSpec):
def render_input(self, varprefix, value):
html.number_input(varprefix, str(value), size = self._size)
if self._label or self._unit:
- html.write(" ")
+ html.write(" ")
if self._label:
html.write(self._label)
elif self._unit:
@@ -211,7 +211,7 @@ class Integer(ValueSpec):
text = sepped
if self._unit:
- text += " " + self._unit
+ text += " " + self._unit
return text
def validate_datatype(self, value, varprefix):