Check if line looks like a table data row (contains | but is not a separator).
(line: str)
| 23 | |
| 24 | |
| 25 | def is_table_data_line(line: str) -> bool: |
| 26 | """Check if line looks like a table data row (contains | but is not a separator).""" |
| 27 | stripped = line.strip() |
| 28 | if not stripped or stripped.startswith("#") or stripped.startswith(">"): |
| 29 | return False |
| 30 | if "|" not in stripped: |
| 31 | return False |
| 32 | if is_separator_line(stripped): |
| 33 | return False |
| 34 | return True |
| 35 | |
| 36 | |
| 37 | def normalize_row(line: str, expected_cols: int = 0) -> str: |
no test coverage detected