(text: str)
| 838 | |
| 839 | |
| 840 | def _split_lines(text: str) -> tuple[List[str], bool]: |
| 841 | if not text: |
| 842 | return [], False |
| 843 | has_trailing = text.endswith(("\r\n", "\n", "\r")) |
| 844 | return text.splitlines(), has_trailing |
| 845 | |
| 846 | |
| 847 | def _describe_segment_line_offsets(full_text: str, start_index: int, snippet: str) -> Dict[str, Any]: |