summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2015-09-04 13:27:02 +0200
committeremkael <emkael@tlen.pl>2015-09-04 13:27:02 +0200
commit5c18b61d233cd515bf71d72bcadc813b11f5e624 (patch)
tree44bc555ae6442c71643645daa4d3946b32f2747b /src
parentfed0a2ee7110551bf23583a3f47daa84e7b36786 (diff)
* fixing broken HTML entities instead of removing cells
Diffstat (limited to 'src')
-rw-r--r--src/virtual_table.py4
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] == '&nbsp':
- row.extract()
+ cells[0].contents[0] = u'\xa0'
return content
# fix board travellers, removing virtual tables and leaving one, annotated