Search code examples
pythonpython-sphinxrestructuredtext

How to insert blank line using reStructuredText / Sphinx


I want to add a blankline (or add more whitespace) between heading and the image using ReStructuredText:

====
John 
====

.. image:: _static/john.JPG
   :alt: John
   :height: 300px
   :width: 400px

But I don't know how to do it?


Solution

  • Use the pipe vertical line key as shown below

       ====
       John 
       ====
    
       |
    
           .. image:: _static/john.JPG
               :alt: John
               :height: 300px
               :width: 400px
    

    That should work.