diff options
author | emkael <emkael@tlen.pl> | 2015-09-04 13:27:02 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2015-09-04 13:27:02 +0200 |
commit | 5c18b61d233cd515bf71d72bcadc813b11f5e624 (patch) | |
tree | 44bc555ae6442c71643645daa4d3946b32f2747b /src | |
parent | fed0a2ee7110551bf23583a3f47daa84e7b36786 (diff) |
* fixing broken HTML entities instead of removing cells
Diffstat (limited to 'src')
-rw-r--r-- | src/virtual_table.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |