diff options
| author | Georg Brandl <georg@python.org> | 2011-01-15 14:27:27 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2011-01-15 14:27:27 +0100 |
| commit | 09b23d2d4f21ef1496af691e87bcb13d0c4c94bf (patch) | |
| tree | 7b10e2c1b9edf6fc52089dbfd307aaff56d4c3c2 /sphinx/writers/html.py | |
| parent | eb1c86f6ee7d289d2009cc7e6516c0b18dce027a (diff) | |
| download | sphinx-09b23d2d4f21ef1496af691e87bcb13d0c4c94bf.tar.gz | |
Fix a few nits found by epubcheck.
Diffstat (limited to 'sphinx/writers/html.py')
| -rw-r--r-- | sphinx/writers/html.py | 6 |
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 \ |
