How to use inline code with trailing space?

When i use

``# ``

in my Sphinx documentation, I get the following warning:

WARNING: Inline literal start-string without end-string.

Attempt

:samp:`# `

leads to

WARNING: Inline interpreted text or phrase reference start-string without end-string.

The problem seems to be the final gap, but I could not figure out how to get around this problem. Removing spaces using the backslash ( \) does not help (for the first example, the warning remains, and for the second example, spaces are omitted in the generated documents).

This answer does not work because the line of inline code interprets |space|as a literal line.


Experienced with Sphinx 1.6.2.

+4
source share
1 answer

Source: https://habr.com/ru/post/1683108/


All Articles