浏览代码

修复补span的问题

luojiehua 3 年之前
父节点
当前提交
7458ba80e0
共有 1 个文件被更改,包括 18 次插入18 次删除
  1. 18 18
      format_convert/utils.py

+ 18 - 18
format_convert/utils.py

@@ -1162,15 +1162,15 @@ class LineTable:
                                 _table[l_i+i].insert(c_i,n_cell)
 
 
-        print("=======")
-        for _line in _table:
-            for _cell in _line:
-                _text = _cell["text"][:2]+"_"+str(_cell["columnspan"])+"_"+str(_cell["rowspan"])
-                if _text=="":
-                    _text = "=="
-                print(_text,end="\t")
-            print("\n")
-        print("===========")
+        # print("=======")
+        # for _line in _table:
+        #     for _cell in _line:
+        #         _text = _cell["text"][:2]+"_"+str(_cell["columnspan"])+"_"+str(_cell["rowspan"])
+        #         if _text=="":
+        #             _text = "=="
+        #         print(_text,end="\t")
+        #     print("\n")
+        # print("===========")
 
         if fixRect:
             for _line in _table:
@@ -1239,15 +1239,15 @@ class LineTable:
 
 
 
-        print("=======")
-        for _line in _table:
-            for _cell in _line:
-                _text = _cell["text"][:2]
-                if _text=="":
-                    _text = "=="
-                print(_text,end="\t")
-            print("\n")
-        print("===========")
+        # print("=======")
+        # for _line in _table:
+        #     for _cell in _line:
+        #         _text = _cell["text"][:2]
+        #         if _text=="":
+        #             _text = "=="
+        #         print(_text,end="\t")
+        #     print("\n")
+        # print("===========")
 
         table_bbox = (_table[0][0].get("bbox")[0],
                       _table[0][0].get("bbox")[1],