0

I have this reStructuredText table:

   ================ ===
   h1               h2
   ================ ===
   a b           c  .
   d e              .
   ================ ===

and it gets me something like this:

enter image description here

I need to space out the a b c text with some whitespaces. I tried adding some vertical bars, > character in front of the row, trying to preformat them (with backquotes), tried with :code:`a b c` , nothing seems to work.

The output will be latex.

Thank you!

P.S. Of course the goal is NOT to place c so far out but to be able to insert whitespaces in a more complex example.

mzjn
  • 48,958
  • 13
  • 128
  • 248
visoft
  • 503
  • 5
  • 13
  • See my answer https://stackoverflow.com/questions/48689094/how-to-define-the-the-height-of-the-csv-table-in-restructuredtext/48694716#48694716. Does that help? – Steve Piercy Sep 07 '20 at 00:01
  • I will wait some more until I try it. My target is Latex, I doubt that CSS styles are on latex make path. But I didn't check so I can't be sure. – visoft Sep 07 '20 at 06:24

1 Answers1

0

I presume that you have regular spaces (U+0020) between a b and c. In the output, they are collapsed into a single space. To avoid this, use non-breaking space characters (U+00A0) in the reStructuredText source.

See https://en.wikipedia.org/wiki/Non-breaking_space.

mzjn
  • 48,958
  • 13
  • 128
  • 248