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

View File

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