My restructuredText input file to Sphinx has a long line:
This is a long line text that I want to keep as a long single line. It should not be wrapped in the text output.
Using the text builder of Sphinx, I get this output:
This is a long line text that I want to keep as a long single line. It
should not be wrapped in the text output.
Sphinx wraps the line. I would like to keep the single long line as is. Is this possible?
Using Line Blocks was suggested in this answer. However using line blocks changes the indentation of the line. I could not find a way to keep the indentation same with Line Blocks.
For input:
Prev Line
| This is a long line text that I want to keep as a long single line. It should not be wrapped in the text output.
Next Line
I get this output:
Prev Line
This is a long line text that I want to keep as a long single line. It should not be wrapped in the text output.
Next Line
The long line is kept long but it is indented now.
I was not able to find a setting about line wrapping in Sphinx configuration page.
I am using sphinx-build version 1.7.4 and the command I use is:
sphinx-build -M text "." "_build"
Update:
The code-block directive also indents the long line.
Input:
Prev Line
.. code-block:: text
This is a long line text that I want to keep as a long single line. It should not be wrapped in the text output.
Next Line
Output:
Prev Line
This is a long line text that I want to keep as a long single line. It should not be wrapped in the text output.
Next Line