Skip to content

Commit

Permalink
fix ten line token convert bug (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
UserWangZz authored Sep 7, 2024
1 parent c33beb9 commit f90256a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,10 @@ def convert_token(html_list):
token_list.append("<td")
if "colspan" in col:
_, n = col.split("colspan=")
token_list.append(' colspan="{}"'.format(n[0]))
token_list.append(' colspan="{}"'.format(int(n)))
if "rowspan" in col:
_, n = col.split("rowspan=")
token_list.append(' rowspan="{}"'.format(n[0]))
token_list.append(' rowspan="{}"'.format(int(n)))
token_list.extend([">", "</td>"])
token_list.append("</tr>")
token_list.append("</tbody>")
Expand Down

0 comments on commit f90256a

Please sign in to comment.