Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to insert blank line using reStructuredText / Sphinx [duplicate]

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?

like image 730
xxks-kkk Avatar asked Jan 08 '13 02:01

xxks-kkk


People also ask

How do you use a sphinx code block?

Literal code blocks (ref) are introduced by ending a paragraph with the special marker :: . The literal block must be indented (and, like all paragraphs, separated from the surrounding ones by blank lines): This is a normal text paragraph.

What is RST Sphinx?

RST stands for ReStructured Text. It is the standard markup language used for documenting python packages. Sphinx is the Python package that generates an html website from RST files, and it is what we are using to generate this site.


1 Answers

Use the pipe vertical line key as shown below

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

That should work.

like image 112
Cyberdancer91 Avatar answered Sep 19 '22 09:09

Cyberdancer91