Search code examples
pythonrestructuredtextkivy

Non breaking spaces in RstDocument in Kivy


Is there any chance to perform non breaking spaces in RstDocument?

I need move one letter words to next line if this word is on the end of line.

I tried define Substitution:

.. |nbsp| unicode:: 0xA0
   :trim:

and then use it in text:

some text some text |nbsp| some text some text

but Kivy RstDocument render it as:

some text some text |nbsp| some text some text

Has anybody any suggestion?


Solution

  • This is apparently a bug in Kivy. The above worked fine with the reST renderer I tried.