summaryrefslogtreecommitdiff
path: root/sphinx/writers/html.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-01-15 14:27:27 +0100
committerGeorg Brandl <georg@python.org>2011-01-15 14:27:27 +0100
commit09b23d2d4f21ef1496af691e87bcb13d0c4c94bf (patch)
tree7b10e2c1b9edf6fc52089dbfd307aaff56d4c3c2 /sphinx/writers/html.py
parenteb1c86f6ee7d289d2009cc7e6516c0b18dce027a (diff)
downloadsphinx-09b23d2d4f21ef1496af691e87bcb13d0c4c94bf.tar.gz
Fix a few nits found by epubcheck.
Diffstat (limited to 'sphinx/writers/html.py')
-rw-r--r--sphinx/writers/html.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/sphinx/writers/html.py b/sphinx/writers/html.py
index 85c65360..613397ea 100644
--- a/sphinx/writers/html.py
+++ b/sphinx/writers/html.py
@@ -244,6 +244,12 @@ class HTMLTranslator(BaseTranslator):
def visit_doctest_block(self, node):
self.visit_literal_block(node)
+ # overwritten to add the <div> (for XHTML compliance)
+ def visit_block_quote(self, node):
+ self.body.append(self.starttag(node, 'blockquote') + '<div>')
+ def depart_block_quote(self, node):
+ self.body.append('</div></blockquote>\n')
+
# overwritten
def visit_literal(self, node):
if len(node.children) == 1 and \