Unverified Commit 05c0b9b3 authored by myhloli's avatar myhloli Committed by GitHub

Merge pull request #92 from icecraft/fix/key_error_replacee_equation

fix: keyerror in equation replace
parents faa8a267 92f9df5d
...@@ -258,6 +258,9 @@ def replace_line_v2(eqinfo, line): ...@@ -258,6 +258,9 @@ def replace_line_v2(eqinfo, line):
last_overlap_span = -1 last_overlap_span = -1
delete_chars = [] delete_chars = []
for i in range(0, len(line["spans"])): for i in range(0, len(line["spans"])):
if "chars" not in line["spans"][i]:
continue
if line["spans"][i].get("_type", None) is not None: if line["spans"][i].get("_type", None) is not None:
continue # 忽略,因为已经是插入的伪造span公式了 continue # 忽略,因为已经是插入的伪造span公式了
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment