Commits

fgallaire committed eb05750

ascii art writer

Comments (0)

Files changed (1)

sphinx/writers/art.py

 # -*- coding: utf-8 -*-
 """
-    sphinx.writers.text
+    sphinx.writers.art
     ~~~~~~~~~~~~~~~~~~~
 
-    Custom docutils writer for plain text.
+    Custom docutils writer for ascii art.
 
     :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
     :license: BSD, see LICENSE for details.
 from sphinx.locale import admonitionlabels, versionlabels, _
 
 
-class TextWriter(writers.Writer):
-    supported = ('text',)
+class ArtWriter(writers.Writer):
+    supported = ('art',)
     settings_spec = ('No options here.', '', ())
     settings_defaults = {}
 
         self.builder = builder
 
     def translate(self):
-        visitor = TextTranslator(self.document, self.builder)
+        visitor = ArtTranslator(self.document, self.builder)
         self.document.walkabout(visitor)
         self.output = visitor.body
 
 STDINDENT = 3
 
 
-class TextTranslator(nodes.NodeVisitor):
+class ArtTranslator(nodes.NodeVisitor):
     sectionchars = '*=-~"+`'
 
     def __init__(self, document, builder):