(paragraph: Dict, title_list: List[str])
| 443 | |
| 444 | @staticmethod |
| 445 | def content_is_null(paragraph: Dict, title_list: List[str]): |
| 446 | if 'title' in paragraph: |
| 447 | title = paragraph.get('title') |
| 448 | content = paragraph.get('content') |
| 449 | if (content is None or len(content.strip()) == 0) and (title is not None and len(title) > 0): |
| 450 | find = [t for t in title_list if t.__contains__(title) and t != title] |
| 451 | if find: |
| 452 | return {'title': '', 'content': ''} |
| 453 | return {'title': '', 'content': title} |
| 454 | return paragraph |
| 455 | |
| 456 | @staticmethod |
| 457 | def filter_title_special_characters(paragraph: Dict): |
no test coverage detected