css.patch, less html5 syntax error noise, thanks Jonathan
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.6.0-development+timestamp.2013.07.11.13.00.56
|
Version 2.6.0-development+timestamp.2013.07.12.09.51.41
|
||||||
|
|||||||
+1
-1
@@ -333,7 +333,7 @@ def highlight(
|
|||||||
== '_' and value])
|
== '_' and value])
|
||||||
if fa:
|
if fa:
|
||||||
fa = ' ' + fa
|
fa = ' ' + fa
|
||||||
return '<table%s><tr valign="top"><td style="width:40px; text-align: right;"><pre style="%s">%s</pre></td><td><pre style="%s">%s</pre></td></tr></table>'\
|
return '<table%s><tr style="vertical-align:top;"><td style="width:40px; text-align: right;"><pre style="%s">%s</pre></td><td><pre style="%s">%s</pre></td></tr></table>'\
|
||||||
% (fa, linenumbers_style, numbers, code_style, code)
|
% (fa, linenumbers_style, numbers, code_style, code)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -2302,7 +2302,7 @@ class BEAUTIFY(DIV):
|
|||||||
example::
|
example::
|
||||||
|
|
||||||
>>> BEAUTIFY(['a', 'b', {'hello': 'world'}]).xml()
|
>>> BEAUTIFY(['a', 'b', {'hello': 'world'}]).xml()
|
||||||
'<div><table><tr><td><div>a</div></td></tr><tr><td><div>b</div></td></tr><tr><td><div><table><tr><td style="font-weight:bold;vertical-align:top">hello</td><td valign="top">:</td><td><div>world</div></td></tr></table></div></td></tr></table></div>'
|
'<div><table><tr><td><div>a</div></td></tr><tr><td><div>b</div></td></tr><tr><td><div><table><tr><td style="font-weight:bold;vertical-align:top;">hello</td><td style="vertical-align:top;">:</td><td><div>world</div></td></tr></table></div></td></tr></table></div>'
|
||||||
|
|
||||||
turns any list, dictionary, etc into decent looking html.
|
turns any list, dictionary, etc into decent looking html.
|
||||||
Two special attributes are
|
Two special attributes are
|
||||||
@@ -2354,8 +2354,8 @@ class BEAUTIFY(DIV):
|
|||||||
continue
|
continue
|
||||||
rows.append(
|
rows.append(
|
||||||
TR(
|
TR(
|
||||||
TD(filtered_key, _style='font-weight:bold;vertical-align:top'),
|
TD(filtered_key, _style='font-weight:bold;vertical-align:top;'),
|
||||||
TD(':', _valign='top'),
|
TD(':', _style='vertical-align:top;'),
|
||||||
TD(BEAUTIFY(value, **attributes))))
|
TD(BEAUTIFY(value, **attributes))))
|
||||||
components.append(TABLE(*rows, **attributes))
|
components.append(TABLE(*rows, **attributes))
|
||||||
continue
|
continue
|
||||||
|
|||||||
+2
-2
@@ -2665,8 +2665,8 @@ class IS_EMPTY_OR(Validator):
|
|||||||
if hasattr(other, 'options'):
|
if hasattr(other, 'options'):
|
||||||
self.options = self._options
|
self.options = self._options
|
||||||
|
|
||||||
def _options(self, zero=False):
|
def _options(self):
|
||||||
options = self.other.options(zero=zero)
|
options = self.other.options()
|
||||||
if (not options or options[0][0] != '') and not self.multiple:
|
if (not options or options[0][0] != '') and not self.multiple:
|
||||||
options.insert(0, ('', ''))
|
options.insert(0, ('', ''))
|
||||||
return options
|
return options
|
||||||
|
|||||||
Reference in New Issue
Block a user