Skip to content

Commit

Permalink
fix: adapt row&col span decode for unitable
Browse files Browse the repository at this point in the history
  • Loading branch information
Joker1212 committed Jan 8, 2025
1 parent cf06b0e commit 0037543
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rapid_table/table_structure/table_structure_unitable.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,10 @@ def decode_tokens(self, context):
td_content = td_match.group(2).strip()
if td_attrs:
decoded_list.append("<td")
decoded_list.append(" " + td_attrs)
# 可能同时存在行列合并,需要都添加
attrs_list = td_attrs.split()
for attr in attrs_list:
decoded_list.append(" " + attr)
decoded_list.append(">")
decoded_list.append("</td>")
else:
Expand Down

0 comments on commit 0037543

Please sign in to comment.