WikiReader icon indicating copy to clipboard operation
WikiReader copied to clipboard

[BUG] Broken table order

Open HackZy01 opened this issue 7 months ago • 1 comments

Describe the bug

Elements are shown in the wrong order/places in more complex tables

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'https://en.wikipedia.org/wiki/List_of_Lego_video_games'
  2. Click on 'Original games'
  3. Click to 'Lego video games without licensing tie-ins'
  4. See error

Expected behavior

Table to get processed properly

Screenshots

Image Image

HackZy01 avatar Apr 10 '26 14:04 HackZy01

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.

mgrablo avatar May 11 '26 18:05 mgrablo