On Mon, Nov 5, 2012 at 3:09 PM, Boris Kheyfets <[email protected]> wrote: > Doesn't work. > > Below are excerpts from rst, css and the resulting html. > > rst: > > .. _test: > > ###### > test > ###### > > .. class:: dialog > > * foo > * bar > * baz > > .. class:: dialog > .. > > * foo > * bar > * baz
I think you have a couple of issues here. 1. You need to use "cssclass" instead of "class" if you are using Sphinx. The example Guenter gave should work correctly for rst2html but not for Sphinx. 2. The second example is formatted incorrectly. Remove the empty comment ".." following the class directive. The following is an example for Sphinx: .. cssclass:: dialog * foo * bar * baz Expected output: <ul class="dialog simple"> <li>foo</li> <li>bar</li> <li>baz</li> </ul> -- Jonathan Waltman -- You received this message because you are subscribed to the Google Groups "sphinx-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sphinx-users?hl=en.
