Using CSS is fine, but we have to prepare CSS to align tables to center always.
I think aligning tables are common feature (mainly centering).
At the same time, it is useful for LaTeX and other writers too.
My patch including the fix for LaTeX's.
The class directive does not effect these writers I believe.
Are there any chance to add the option?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Despite using CSS is an easy fix, for more general uses it might be not that simple. As Takeshi said, if the target format is Latex one may need to have some information to decide the table alignement.
In terms of readability an explicit mention to the table alignement is a plus.
Such an option would also make figure and table behave in a more similar way.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You can pass the align-... class value to any object via the "class" directive. Styling with CSS should then be easy.
Using CSS is fine, but we have to prepare CSS to align tables to center always.
I think aligning tables are common feature (mainly centering).
At the same time, it is useful for LaTeX and other writers too.
My patch including the fix for LaTeX's.
The class directive does not effect these writers I believe.
Are there any chance to add the option?
Hi,
just to elaborate a bit on the issue:
Despite using CSS is an easy fix, for more general uses it might be not that simple. As Takeshi said, if the target format is Latex one may need to have some information to decide the table alignement.
In terms of readability an explicit mention to the table alignement is a plus.
Such an option would also make figure and table behave in a more similar way.
I agree that this as an addition that nicely fits in.
For a complete patch, we would need test cases and a documentation update.
I'm grad to hear that. I updated the patch including testcases and documentation.
Could you review this please?
Thanks for the update. I completed support for list tables, added some more tests and adapted the documentation.
Committed in 7952. Please test.
Still missing is an update of the Docutils DTD http://docutils.sourceforge.net/docs/ref/docutils.dtd adding the align option to tables.
The change is now complete. Please reopen if there are problems.
Thank you for the suggestion and patch.