From 5c18b61d233cd515bf71d72bcadc813b11f5e624 Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 4 Sep 2015 13:27:02 +0200 Subject: * fixing broken HTML entities instead of removing cells --- src/virtual_table.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/virtual_table.py b/src/virtual_table.py index abdb49a..8750bfc 100644 --- a/src/virtual_table.py +++ b/src/virtual_table.py @@ -204,10 +204,10 @@ class JFRVirtualTable: row.extract() except ValueError: pass - # there are some clearly broken table cells, just throw them away + # there are some clearly broken table cells, fix them if len(cells) == 1 and cells[0]['colspan'] == '7': if cells[0].contents[0] == ' ': - row.extract() + cells[0].contents[0] = u'\xa0' return content # fix board travellers, removing virtual tables and leaving one, annotated -- cgit v1.2.3