[Python-checkins] r57077 - doctools/trunk/sphinx/writer.py

georg.brandl python-checkins at python.org
Wed Aug 15 21:06:17 CEST 2007


Author: georg.brandl
Date: Wed Aug 15 21:06:17 2007
New Revision: 57077

Modified:
   doctools/trunk/sphinx/writer.py
Log:
Format .. warning::s with a "Caveat" label.


Modified: doctools/trunk/sphinx/writer.py
==============================================================================
--- doctools/trunk/sphinx/writer.py	(original)
+++ doctools/trunk/sphinx/writer.py	Wed Aug 15 21:06:17 2007
@@ -39,6 +39,7 @@
         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']))


More information about the Python-checkins mailing list