Prechádzať zdrojové kódy

Merge remote-tracking branch 'origin/master'

fangjiasheng 3 rokov pred
rodič
commit
b9ba9b9c88
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      format_convert/utils.py

+ 1 - 1
format_convert/utils.py

@@ -1124,7 +1124,7 @@ class LineTable:
         # print("list_textbox", list_textbox)
         for textbox in list_textbox:
             (x0,y0,x1,y1) = textbox.bbox
-            _text = textbox.get_text()
+            _text = re.sub('[\s\r\n]','',textbox.get_text())
             _find = False
             for table_line in _table:
                 for _cell in table_line: