retext icon indicating copy to clipboard operation
retext copied to clipboard

Table Editor doesn't preserve whitespaces on column width change

Open aik099 opened this issue 7 months ago • 0 comments

Example table:

+------------------------------+----------+----------+
| heading 1                    | heading 2| heading 3|
+==============================+==========+==========+
| .. config-property::         | line 1   |          |
|    :name: TrimRequiredFields |          |          |
|    :type: int                | line 2   | line 2   |
|                              | line 3   |          |
|                              | line 4   |          |
+------------------------------+----------+----------+
| .. config-property::         | line 1   | 200      |
|    :name: MenuFrameWidth     | line 2   |          |
|    :type: int                | line 3   |          |
+------------------------------+----------+----------+

When you decrease the content of the cell, then heading of the column loses its trailing space (the 1 removed in line 1 text):

+------------------------------+----------+-----------+
| heading 1                    | heading 2| heading 3 |
+==============================+==========+===========+
| .. config-property::         | line     |           |
|    :name: TrimRequiredFields |          |           |
|    :type: int                | line 2   | line 2    |
|                              | line 3   |           |
|                              | line 4   |           |
+------------------------------+----------+-----------+
| .. config-property::         | line 1   | 200       |
|    :name: MenuFrameWidth     | line 2   |           |
|    :type: int                | line 3   |           |
+------------------------------+----------+-----------+

aik099 avatar Apr 21 '25 06:04 aik099