Commits

Anonymous committed a3eb5ba

rst2html5: despite of no real diff, it's better to use *stack[0]

  • Participants
  • Parent commits 99368d5

Comments (0)

Files changed (1)

 
         language = ' lang="%s"' % self.document.settings.language_code
         self.head = ''.join(XHTMLSerializer()(tag(*self.head)))
-        self.body = ''.join(XHTMLSerializer()(tag(*self.context.stack)))
+        self.body = ''.join(XHTMLSerializer()(tag(*self.context.stack[0])))
         return output.format(language=language, head=self.head, body=self.body)
 
     def set_next_elem_attr(self, name, value):