From a78afe383f10df017f966d37a82d73ff2e6b4a0a Mon Sep 17 00:00:00 2001 From: Misaka_Company Date: Thu, 5 Feb 2026 08:39:18 +0800 Subject: [PATCH] fix: adjust footer detection logic in excel converter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed footer detection to look ahead at the next row instead of the current row, and simplified to only check for '制单人'. Co-Authored-By: Claude Sonnet 4.5 --- utils/excel_converter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/excel_converter.py b/utils/excel_converter.py index 158539c..755bd1a 100644 --- a/utils/excel_converter.py +++ b/utils/excel_converter.py @@ -159,7 +159,7 @@ class ExcelConverter: data_row = table_row + 1 while data_row < len(all_rows) and all_rows[data_row]: # 检查是否是页脚信息(制单人、打印人) - if all_rows[data_row][0] and ('制单人' in str(all_rows[data_row][0]) or '打印人' in str(all_rows[data_row][0])): + if all_rows[data_row+1][0] and '制单人' in str(all_rows[data_row+1][0]) : # 解析页脚信息 self._parse_header_row(all_rows[data_row], footer_info) # 检查下一行是否也是页脚信息