()
| 339 | text = re.sub(r"~~([^~]+)~~", r"\1", text) |
| 340 | |
| 341 | cleaned_lines = [] |
| 342 | previous_blank = False |
| 343 | for raw_line in text.splitlines(): |
| 344 | line = html_lib.unescape(raw_line).replace("\xa0", " ").strip() |
| 345 | if not line: |
| 346 | if not previous_blank: |
| 347 | cleaned_lines.append("") |
| 348 | previous_blank = True |
| 349 | continue |
| 350 | if line in {"---", "***", "___"}: |
| 351 | continue |
| 352 | if re.match(r"^\|?\s*[-: ]+\|[-|: ]*$", line): |
no test coverage detected