Commits

fgallaire committed d20e5b5

ascii art builder

Comments (0)

Files changed (1)

sphinx/builders/art.py

 # -*- coding: utf-8 -*-
 """
-    sphinx.builders.text
-    ~~~~~~~~~~~~~~~~~~~~
+    sphinx.builders.art
+    ~~~~~~~~~~~~~~~~~~~
 
-    Plain-text Sphinx builder.
+    Ascii art Sphinx builder.
 
     :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
     :license: BSD, see LICENSE for details.
 
 from sphinx.builders import Builder
 from sphinx.util.osutil import ensuredir, os_path
-from sphinx.writers.text import TextWriter
+from sphinx.writers.art import ArtWriter
 
 
-class TextBuilder(Builder):
-    name = 'text'
-    format = 'text'
-    out_suffix = '.txt'
+class ArtBuilder(Builder):
+    name = 'art'
+    format = 'art'
+    out_suffix = '.art'
 
     def init(self):
         pass
         return ''
 
     def prepare_writing(self, docnames):
-        self.writer = TextWriter(self)
+        self.writer = ArtWriter(self)
 
     def write_doc(self, docname, doctree):
         destination = StringOutput(encoding='utf-8')