From: Haney A. <ha...@om...> - 2005-11-03 22:07:04
|
...so that a row of dollar amounts will line up correctly - aligned to the right? |
From: Felix W. <Fel...@gm...> - 2005-11-04 13:49:25
|
Haney Armstrong <haney <at> omidyar.net> writes: > Subject: possible to align right within a row of cells? > ...so that a row of dollar amounts will line up correctly - aligned > to the right? That's not currently possible. <http://docutils.sf.net/docs/dev/todo.html#classes-for-table-cells> would solve that problem, but it's not yet implemented. For the meantime you can use the solution outlined in <http://article.gmane.org/gmane.text.docutils.user/1467>. -- Felix Wiemann -- http://www.ososo.de/ |
From: Jeremy B. <jer...@ba...> - 2005-11-04 19:50:14
|
On Fri, Nov 04, 2005 at 01:46:24PM +0000, Felix Wiemann wrote: > Haney Armstrong <haney <at> omidyar.net> writes: > > > Subject: possible to align right within a row of cells? > > ...so that a row of dollar amounts will line up correctly - aligned > > to the right? > > That's not currently possible. > > <http://docutils.sf.net/docs/dev/todo.html#classes-for-table-cells> > would solve that problem, but it's not yet implemented. > > For the meantime you can use the solution outlined in > <http://article.gmane.org/gmane.text.docutils.user/1467>. This workaround might work for you, if you need it for HTML:: .. class:: right3 ======== ======== ======== Column 1 Column 2 Column 3 ======== ======== ======== one red 1 two blue 2 ======== ======== ======== And then in your stylesheet:: table.right3 td + td + td { text-align: right } Although the "Classes for table cells" could be a powerful feature, there should be an opportunity to automatically distinguish text alignment (and maybe some other things) from the text. It seems to me that it's obvious that the text above in the third column is right-aligned, and therefore the written output for other formats should be as well. -j |
From: Jeremy B. <jer...@ba...> - 2005-11-04 20:10:47
|
On Fri, Nov 04, 2005 at 11:49:54AM -0800, Jeremy Brinkley wrote: > Although the "Classes for table cells" could be a powerful feature, > there should be an opportunity to automatically distinguish text > alignment (and maybe some other things) from the text. It seems to > me that it's obvious that the text above in the third column is > right-aligned, and therefore the written output for other formats > should be as well. I see this appears further down the to-do list. -j |