I am using Sphinx for generating docs for a python project. The output html is not preserving the line breaks which are present in the docstring. Example:
Code
If you add the following to your main .rst file:
.. |br| raw:: html
Then in your markup you can add in |br| to create linebreaks just for HTML.
|br|
I want to break this line here: |br| after the break.
From: http://docutils.sourceforge.net/FAQ.html#how-to-indicate-a-line-break-or-a-significant-newline