WikiReader
WikiReader copied to clipboard
[BUG] Broken table order
Describe the bug
Elements are shown in the wrong order/places in more complex tables
To Reproduce
Steps to reproduce the behavior:
- Go to 'https://en.wikipedia.org/wiki/List_of_Lego_video_games'
- Click on 'Original games'
- Click to 'Lego video games without licensing tie-ins'
- See error
Expected behavior
Table to get processed properly
Screenshots
Hi! I've found the cause of this bug. The parseWikitable function checks for rowspans but skips the check for adjacent cells before adding text, which shifts the columns. I'm working on a fix and will submit a PR soon.