TableModeRealign strips leading whitespace in cell
I have a table cell that has a ReST code block, which has leading whitespace. When I call TableModeRealign, the leading spaces are stripped, which collapses the structure of the code in the block.
For example:
+-------------+-----------------------------------------------------------------------+
| filters | JSON object representing a simplified query, of this form:: |
| | |
| | { |
| | "field1": ["value1", "value2"], |
| | "field2": ["value3"] |
| | } |
becomes
+-------------+-----------------------------------------------------------------------+
| filters | JSON object representing a simplified query, of this form:: |
| | |
| | { |
| | "field1": ["value1", "value2"], |
| | "field2": ["value3"] |
| | } |
So far this is my only issue with this extremely useful plugin. Thanks!
Hey, this is by design, as of now there's no way to configure any padding etc. What it's doing here is simply aligning data within those table separators.
@brettdh i havn't tried it, but maybe you could insert a character, the plugin doesn't recognize as whitespace at the start of the line and have your indentation behind that. @dhruvasagar would a non break space character work for that?
I ran into this issue as well. Any kind of code block within a table gets its leading spaces removed.
The no break space character doesn't work unfortunately.
+1