Format .. warning::s with a "Caveat" label.

This commit is contained in:
Georg Brandl
2007-08-15 19:06:17 +00:00
parent d302c52646
commit 43ec19ffb7

View File

@@ -39,6 +39,7 @@ class HTMLTranslator(BaseTranslator):
self.no_smarty = 0
BaseTranslator.__init__(self, *args, **kwds)
self.highlightlang = 'python'
self.language.labels['warning'] = 'Caveat'
def visit_desc(self, node):
self.body.append(self.starttag(node, 'dl', CLASS=node['desctype']))