Skip to content

Commit db772b1

Browse files
authored
fix: Segmented filtering of paragraphs with empty parent title content (#2693)
1 parent ca12d65 commit db772b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/common/util/split_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,9 @@ def parse(self, text: str):
344344
'content' in item and len(item.get('content').strip()) > 0]
345345

346346
def post_reset_paragraph(self, paragraph: Dict, title_list: List[str]):
347-
result = self.filter_title_special_characters(paragraph)
347+
result = self.content_is_null(paragraph, title_list)
348+
result = self.filter_title_special_characters(result)
348349
result = self.sub_title(result)
349-
result = self.content_is_null(result, title_list)
350350
return result
351351

352352
@staticmethod

0 commit comments

Comments
 (0)