-
2010-01-25
jeff_dickey
Nesting tables inside lists mangles everything badly.
Example code:
[code]
* List 1
^ Head 1 | Detail 1 |
^ Head 2 | Detail 2 |
^ Head 3 | Detail 3 |
* List 2
| Detail 2A1 | Detail 2B1 |
| Detail 2A2 | Detail 2B2 |
| Detail 2A3 | Detail 2B3 |
* List 3
^ Head 4 | Detail 4 |
^ Head 5 | Detail 5 |
^ Head 6 | Detail 6 |
* List 4
^ Head 4A ^ Head 4B ^
| Detail 4A1 | Detail 4B1 |
| Detail 4A2 | Detail 4B2 |
| Detail 4A3 | Detail 4B3 |
* List 5
* SubList 1
^ Head 7 | Detail 7 |
^ Head 8 | Detail 8 |
^ Head 9 | Detail 9 |
* SubList 2
* List 6
* List 7
[/code]
The code above is rendered as shown in the attachment. Pay special attention to the main list; the first line of List 1, and the content below List 5.
-
2010-01-26
andi
Just to be sure, if your intend was to have tables inside a list - that doesn't work.
For the problem at hand, simply separating the tables from the lists with a blank line will cure the symptoms and make the source much more readable as well.
Fixing this in the parser might be extremely complicated and I'm not sure it is worth the effort.
-
2010-01-31
jeff_dickey
That's interesting. What initially led me down the primrose path was thinking that tables-inside-lists was conceptually similar to <code>...</code>-inside-lists, which works precisely as expected. After/if I successfully dig myself out from under the pile I've got on my desk, I'll have to learn a lot more about the internals of DW. Thanks for the feedback.
-
2010-06-26
foosel
Everything working as intended.