tag wrapped around docs
+ # see also: http://bit.ly/1exfq2h (warning! sourceforge link.)
+ def depart_document(self, node):
+ HTMLTranslator.depart_document(self, node)
+ self.html_body.pop(0)
+ self.html_body.pop()
+
+ # technique for visiting sections, without generating additional divs
+ # see also: http://bit.ly/NHtyRx
+ def visit_section(self, node):
+ self.section_level += 1
+
+ def depart_section(self, node):
+ self.section_level -= 1
+
def visit_literal_block(self, node):
classes = node.attributes['classes']
if len(classes) >= 2 and classes[0] == 'code':
diff --git a/test/markups/README.rst.html b/test/markups/README.rst.html
index b117e888..5bb052bb 100644
--- a/test/markups/README.rst.html
+++ b/test/markups/README.rst.html
@@ -1,8 +1,5 @@
-
-
-
diff --git a/test/markups/README.rst.txt.html b/test/markups/README.rst.txt.html
index 8e26e4f0..e60a5403 100644
--- a/test/markups/README.rst.txt.html
+++ b/test/markups/README.rst.txt.html
@@ -1,14 +1,7 @@
-
-
-
-