0

The following rST directive doesn't support trailing spaces:

:code:`foo    `

Example:

>>> from docutils import core
>>> whole = core.publish_parts(""":code:`x    `""")['whole']
<string>:1: (WARNING/2) Inline interpreted text or phrase reference start-string without end-string.

Is there a way to get rid of this warning?

nowox
  • 25,978
  • 39
  • 143
  • 293

1 Answers1

2

No. According to the docutils documentation of Inline markup recognition rules:

  1. Inline markup end-strings must be immediately preceded by non-whitespace.
Steve Piercy
  • 13,693
  • 1
  • 44
  • 57