-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 12.08.2010 23:55, schrieb PFL: > I have a list-table for which I want to create index entries to the > rows. However, no matter how I try, I get build errors. > > For example: > ----------------------------------------- > > Tables > ====== > > .. list-table:: > :widths: 20 30 10 > :header-rows: 1 > > * - A > - B > - C > * - A1 > - B1 > - C1 > * - A2 > - B2 > .. index:: C2 > - C2 > > > yields: > > (WARNING/2) Bullet list ends without a blank line; unexpected > unindent. > (WARNING/2) Block quote ends without a blank line; unexpected > unindent. > (ERROR/3) Error parsing content block for the "list-table" directive: > exactly one bullet list expected.
I don't think this will work. Even if you write it syntactically correct (using blank lines to separate list and directive), list-table doesn't allow interspersed other nodes. I think I've a request somewhere for an index role, which you could use to inline the index entry: - - :index:`C2` Probably will be in 1.1. Georg -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iEYEARECAAYFAkxmqNYACgkQN9GcIYhpnLBMagCgr7vi6p8gPMA1mWpRxP6JY57V QecAn2mdwESJsDT3GCP4CLPo7YQanSQm =+2i7 -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to sphinx-...@googlegroups.com. To unsubscribe from this group, send email to sphinx-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.