diff --git a/src/calibre/ebooks/oeb/html.css b/src/calibre/ebooks/oeb/html.css
index 38e4f314a4..a454b9b716 100644
--- a/src/calibre/ebooks/oeb/html.css
+++ b/src/calibre/ebooks/oeb/html.css
@@ -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;
}
diff --git a/src/calibre/ebooks/oeb/stylizer.py b/src/calibre/ebooks/oeb/stylizer.py
index b6e4ffc184..28f3218fb6 100644
--- a/src/calibre/ebooks/oeb/stylizer.py
+++ b/src/calibre/ebooks/oeb/stylizer.py
@@ -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)