I try to include code-clocks in tables in the docstrings that are interpreted by Sphinx. I tried the following:
+-------------------------------------------+---------------------------------------------------+------------------------------------+
| Method 1 | Method 2 | Method 3 |
+===========================================+===================================================+====================================+
| .. code-block:: | .. code-block:: | .. code-block:: |
| | | |
| "num_magnet_segments_all": 3 | "num_magnet_segments_all": 3, | "num_magnet_segments_all": 3, |
| | "num_magnet_segments": { | "magnet_segment_widths": { |
| | "Rotor.Magnet3_North": 5, | "82": [3, 9], |
| | "Rotor.Magnet3_South": 5} | "96": 10} |
+-------------------------------------------+---------------------------------------------------+------------------------------------+
This basically works but the code inside the blocks is centered instead of left-aligned. The whole table is centered by the way but the ordinary text within the table is left-aligned as expected. How can I force the code-blocks to output what I write instead of re-aligning the code?