kopia lustrzana https://github.com/wagtail/wagtail
Don't wrap TableBlock rendering in a div - fixes #2629
rodzic
f8d7970cbb
commit
8ed30060fd
|
@ -1,4 +1,3 @@
|
|||
<div class="table">
|
||||
<table>
|
||||
{% if table_header %}
|
||||
<thead>
|
||||
|
@ -47,4 +46,3 @@
|
|||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
@ -21,7 +21,7 @@ def get_test_html_from_value(value):
|
|||
that's what we expect from the TableBlock.
|
||||
"""
|
||||
data = list(value['data']) # Make a copy
|
||||
table = '<div class="table"><table>'
|
||||
table = '<table>'
|
||||
if value['first_row_is_table_header']:
|
||||
row_header = data.pop(0)
|
||||
table += '<thead><tr>'
|
||||
|
@ -39,7 +39,7 @@ def get_test_html_from_value(value):
|
|||
table += '<td>%s</td>' % tiny_escape(col)
|
||||
first = False
|
||||
table += '</tr>'
|
||||
table += '</tbody></table></div>'
|
||||
table += '</tbody></table>'
|
||||
return table
|
||||
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue