(start_line: int, block_text: str)
| 223 | width = len(str(total_lines)) |
| 224 | |
| 225 | def _number_block(start_line: int, block_text: str) -> str: |
| 226 | lines = block_text.split("\n") |
| 227 | numbered = [] |
| 228 | for j, line in enumerate(lines): |
| 229 | lineno = start_line + j |
| 230 | numbered.append(f"{lineno:>{width}}| {line}") |
| 231 | return "\n".join(numbered) |
| 232 | |
| 233 | def _split_by_lines(start_line: int, block_text: str) -> list[tuple[int, str]]: |
| 234 | """Last-resort split: cut at line boundaries to fit budget.""" |
no outgoing calls
no test coverage detected