diff options
| author | Georg Brandl <georg@python.org> | 2009-01-04 22:00:40 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2009-01-04 22:00:40 +0100 |
| commit | afc0d3fbc313eaca17aee86cbb0993d4f92d55c9 (patch) | |
| tree | 19dccceb983e578a6ecc8575ebef9066b338ada9 /sphinx/writers/html.py | |
| parent | afaacbd66760f8ce11ec8d7ea2cdd3d7b22fe3e8 (diff) | |
| download | sphinx-afc0d3fbc313eaca17aee86cbb0993d4f92d55c9.tar.gz | |
Close #52: There is now a ``hlist`` directive, creating a compact
list by placing distributing items into multiple columns.
Diffstat (limited to 'sphinx/writers/html.py')
| -rw-r--r-- | sphinx/writers/html.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sphinx/writers/html.py b/sphinx/writers/html.py index e34b8fa9..8c1a87ba 100644 --- a/sphinx/writers/html.py +++ b/sphinx/writers/html.py @@ -321,6 +321,16 @@ class HTMLTranslator(BaseTranslator): def depart_module(self, node): pass + def visit_hlist(self, node): + self.body.append('<table class="hlist"><tr>') + def depart_hlist(self, node): + self.body.append('</tr></table>\n') + + def visit_hlistcol(self, node): + self.body.append('<td>') + def depart_hlistcol(self, node): + self.body.append('</td>') + def bulk_text_processor(self, text): return text |
