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)
This commit is contained in:
Billy Bao
2025-10-30 19:00:11 +08:00
committed by GitHub
parent 5f65c7f48e
commit ab52ffc9c0

View File

@ -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: