Преглед на файлове

fix: 修复比较结果输出格式,确保在报告中正确显示差异信息

zhch158_admin преди 1 месец
родител
ревизия
5cf9fb3b25
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      compare_ocr_results.py

+ 1 - 0
compare_ocr_results.py

@@ -973,6 +973,7 @@ class OCRResultComparator:
                     f.write(f"`{diff['file1_value'][:50]}{'...' if len(diff['file1_value']) > 50 else ''}` | ")
                     f.write(f"`{diff['file2_value'][:50]}{'...' if len(diff['file2_value']) > 50 else ''}` | ")
                     f.write(f"{diff['description']} | {severity} |\n")
+
 def compare_ocr_results(file1_path: str, file2_path: str, output_file: str = "comparison_report",
                        output_format: str = "markdown", ignore_images: bool = True,
                        table_mode: str = 'standard', similarity_algorithm: str = 'ratio'):