2

Sphinx allows arbitrarily placed line breaks in HTML output with the |br| notation. However this does not work with Latex or EPUB. Is there any way in Sphinx to specify arbitrary line breaks in an output platform independent manner? The problem I face is that I use lists such as

* Line 1
  Line 2

and this will not allow line blocks on line 2

mzjn
  • 48,958
  • 13
  • 128
  • 248
Jonathan
  • 2,635
  • 3
  • 30
  • 49
  • Have you tried line blocks? https://stackoverflow.com/a/51216339/407651 – mzjn Jan 14 '19 at 17:47
  • They do not work because the line block must be in column zero which destroys indentation in nested lines within nested lists. – Jonathan Jan 15 '19 at 11:54
  • Can you provide an example of "nested lines within nested lists"? – mzjn Jan 15 '19 at 12:08
  • What happens if you put `| ` in front of both `Line 1` and `Line 2`? – mzjn Jan 15 '19 at 15:55
  • @mzjn I get crazy indenting of Line 2. Line2 is either not-indented at alL (happens with a visual indent of 2) or gets an indent of 5 spaces if I use the natural visual indent of 3.I can find no Indenting which will align Line 2 properly with an indent of 3 spaces. – Jonathan Jan 15 '19 at 18:47
  • I think you need to clarify what the problem is (in the question, not in comments). How can we reproduce it? What exactly is the wanted result? – mzjn Jan 15 '19 at 20:12

0 Answers0