-
Committer:
Vincent Ladeuil
-
Date:
2010-05-06 17:48:18 UTC
-
mto:
(5355.1.1 integration)
-
mto:
This revision was merged to the branch mainline in
revision
5356.
-
Revision ID:
v.ladeuil+lp@free.fr-20100506174818-6fmsa7ua1udfgldk
Implement the table generation.
* bzrlib/tests/doc_generate/builders/test_texinfo.py:
(TestTableGeneration): Test a basic table generation.
* bzrlib/doc_generate/writers/texinfo.py:
(TexinfoTranslator.__init__): Add attributes for tables.
(TexinfoTranslator.depart_paragraph): Divert when used in tables.
(TexinfoTranslator.depart_Text): Divert when used in tables.
(TexinfoTranslator.visit_table, TexinfoTranslator.visit_table):
The table declaration.
(TexinfoTranslator.visit_tgroup, TexinfoTranslator.depart_tgroup):
Record the number of columns.
(TexinfoTranslator.visit_thead, TexinfoTranslator.depart_thead)
(TexinfoTranslator.visit_tbody, TexinfoTranslator.depart_tbody):
Prepare the row generation.
(TexinfoTranslator.visit_row, TexinfoTranslator.depart_row):
Prepare the entry counting.
(TexinfoTranslator.visit_entry, TexinfoTranslator.visit_entry):
Generate the entry depending on the row type and entry number.