Merge branch 'feature/knowledge_lxc' into release/v0.2.4

This commit is contained in:
lixiangcheng1
2026-02-10 14:17:22 +08:00
5 changed files with 83 additions and 13 deletions

View File

@@ -670,7 +670,7 @@ def chunk(filename, binary=None, from_page=0, to_page=100000,
with open(filename, "rb") as f:
binary = f.read()
excel_parser = ExcelParser()
if parser_config.get("html4excel"):
if parser_config.get("html4excel") and parser_config.get("html4excel").lower() == "true":
sections = [(_, "") for _ in excel_parser.html(binary, 12) if _]
parser_config["chunk_token_num"] = 0
else: