1

How can I break long caption in figure directive? I tried line blocks but the caption disappeared completely.

.. figure:: a.png
   :width: 200

   | First line
   | second line.
Shibli
  • 5,879
  • 13
  • 62
  • 126
  • Does this answer your question? [How to preserve line breaks when generating python docs using sphinx](https://stackoverflow.com/questions/7033239/how-to-preserve-line-breaks-when-generating-python-docs-using-sphinx) – Steve Piercy Oct 03 '21 at 06:16
  • @StevePiercy No. I tried what proposed in the first answer and it doesn't work. – Shibli Oct 03 '21 at 10:42
  • You should read the other answers, like this one: https://stackoverflow.com/a/9664844/2214933 – Steve Piercy Oct 04 '21 at 03:33

0 Answers0