Closed theldoria closed 7 years ago
Sorry, but I don't get it. What do you mean by "if the head-line is narrowed the layout is wrong"?
The colum with heading Bit-Offset
is set to size 4 by <4>
. That leads to an abbreviation of the heading in org-mode
buffer, thus that the heading reads Bi=>
. However, this abbreviation is not reflected in the sticky head line.
The table, seen in org-mode
, looks like this:
| Byte | Bit | Bi=> | Type | Description |
| | | <4> | | |
|------+-----+------+-------+-------------|
| 0 | 0 | 0 | DWORD | |
| 6 | 0 | 48 | DWORD | |
| 10 | 0 | 80 | BYTE | |
| 11 | 0 | 88 | BOOL | |
| 11 | 1 | 89 | BOOL | |
Btw, if you put narrowing above the head line, then they are shown as sticky head line instead. But this may be worth a second issue...
Thanks for the explanation. For the narrowing, two commits were pushed and I hope it should be fixed now. Let me know if that doesn't work.
For the question of which line should be considered to be the real header, I found it hard to cover various situations so I simply take the first line of the table and use that as the header line. Do you have any suggestions regarding this?
Ok, I will try it this afternoon.
Regarding the line to be considered: I am not yet sure whether this is an issue that must be addressed. It is possible to have the narrowing information as second line, though I don't know if that is intended in org-mode
. If it is, then you could simply give the advice to asure the header row as the first and keep table configuation rows below the header.
Works like a charm :+1:.
Narrowed columns are respected. However, if the head-line is narrowed the layout is wrong.