I am trying to create nested and well formatted rst file like this:


.. function:: level1
       
    .. code-block:: python
       
        def f1():
           
    .. function:: level2
           
        .. code-block:: python
           
            def f2():
               
        .. function:: level3
                   
            .. code-block:: python
               
                def f3():



formatted code availabe also at 
https://gist.githubusercontent.com/ra1u/1a951c3783e6dc70db25c494dd38ba99/raw

This generates html where code block escapes level so frame of code block 
with f2 at level2 is more left that one at level1 with f1.

Has anyone some idea how can I solve this? I am using 1.4.6 from pip.

Best regards, Luka.

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to