removed unwanted whitespaces
This commit is contained in:
+5
-4
@@ -2034,11 +2034,11 @@ class FORM(DIV):
|
||||
return self
|
||||
|
||||
REDIRECT_JS = "window.location='%s';return false"
|
||||
|
||||
|
||||
def add_button(self,value,url,_class=None):
|
||||
self[0][-1][1].append(INPUT(_type="button",_value=value,_class=_class,
|
||||
_onclick=self.REDIRECT_JS % url))
|
||||
|
||||
|
||||
|
||||
|
||||
@staticmethod
|
||||
@@ -2052,7 +2052,7 @@ class FORM(DIV):
|
||||
inputs += [INPUT(_type='hidden',
|
||||
_name=name,
|
||||
_value=value)
|
||||
for name,value in hidden.items()]
|
||||
for name,value in hidden.items()]
|
||||
form = FORM(INPUT(_type='submit',_value=text),*inputs)
|
||||
form.process()
|
||||
return form
|
||||
@@ -2385,7 +2385,7 @@ class MARKMIN(XmlComponent):
|
||||
autolinks='default',
|
||||
protolinks='default',
|
||||
class_prefix='',
|
||||
id_prefix='markmin_'):
|
||||
id_prefix='markmin_'):
|
||||
self.text = text
|
||||
self.extra = extra or {}
|
||||
self.allowed = allowed or {}
|
||||
@@ -2434,3 +2434,4 @@ if __name__ == '__main__':
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user