Guenter Milde wrote:
> On 2009-08-31, Chris Withers wrote:
>> Guenter Milde wrote:
> 
>>> I would rather nest the literal block in a directive, a topic, say::
> 
>>>   .. topic:: myfile.py
> 
>>>     ::
> 
>>>       class MyClass:
>>>          def something(self):
>>>             pass

Okay, I think I get this, but why the double colon on its own line?

Why not just:

.. topic:: myfile.py
    :class:file

        class MyClass:
           def something(self):
              pass

cheers,

Chris

-- 
Simplistix - Content Management, Batch Processing & Python Consulting
            - http://www.simplistix.co.uk

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-dev@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
-~----------~----~----~----~------~----~------~--~---

Reply via email to