未验证 提交 1f3ca7a5 编写于 作者: W whjdark 提交者: GitHub

Merge pull request #2 from Evezerest/table2

change label filename
......@@ -2382,7 +2382,7 @@ class MainWindow(QMainWindow):
# save dict
html = {'structure': {'tokens': token_list}, 'cell': cells}
json_results.append({'filename': filename, 'split': split, 'imgid': imgid, 'html': html})
json_results.append({'filename': os.path.basename(image_path), 'split': split, 'imgid': imgid, 'html': html})
imgid += 1
# save json
......
......@@ -225,7 +225,7 @@ def convert_token(html_list):
if 'rowspan' in col:
_, n = col.split('rowspan=')
token_list.append(" rowspan=\"{}\"".format(n))
token_list.append(">")
token_list.extend([">", "</td>"])
token_list.append("</tr>")
token_list.append("</tbody>")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册