From ab52ffc9c0303a6d3e43ef86bf7cd80cfc6ae101 Mon Sep 17 00:00:00 2001 From: Billy Bao Date: Thu, 30 Oct 2025 19:00:11 +0800 Subject: [PATCH] Fix: law parser (#10897) ### What problem does this PR solve? Fix: law parser #10888 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- rag/app/laws.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rag/app/laws.py b/rag/app/laws.py index 35cb706d8..4e398a1de 100644 --- a/rag/app/laws.py +++ b/rag/app/laws.py @@ -87,7 +87,7 @@ class Docx(DocxParser): root = Node(level=0, depth=h2_level, texts=[]) root.build_tree(lines) - return [("\n").join(element) for element in root.get_tree() if element] + return [element for element in root.get_tree() if element] def __str__(self) -> str: