Clean up unnecessary CSS rules.

This commit is contained in:
Marshall T. Vandegrift 2008-12-28 15:47:39 -05:00
parent dc1bfe4d20
commit d0e1f3d26d
2 changed files with 3 additions and 12 deletions

View File

@ -45,7 +45,6 @@ html, div, map, dt, isindex, form {
body {
display: block;
margin: 8px;
}
p, dl, multicol {
@ -59,7 +58,7 @@ dd {
blockquote {
display: block;
margin: 1em 40px;
margin: 1em;
}
address {
@ -74,7 +73,7 @@ center {
blockquote[type=cite] {
display: block;
margin: 1em 0px;
margin: 1em 0em;
border-color: blue;
border-width: thin;
}
@ -234,14 +233,6 @@ th {
/* inlines */
q:before {
content: open-quote;
}
q:after {
content: close-quote;
}
b, strong {
font-weight: bolder;
}

View File

@ -179,7 +179,7 @@ class Stylizer(object):
for _, _, cssdict, text, _ in rules:
try:
selector = CSSSelector(text)
except ExpressionError:
except ExpressionError, e:
continue
for elem in selector(tree):
self.style(elem)._update_cssdict(cssdict)