Commit 4081e0d
docs: fix docstring and improve partial overlap handling
Fix two issues identified in code review:
1. Add missing 'dimensions' field to parse_to_json() docstring
- dimensions is always included in response but was missing from docs
- Add example: "A1:D10"
2. Improve _calculate_header_range() for partial overlap cases
- Previous: frozen_rows=2, cell_range="A2:B6" → no header added (row 1 missing)
- Fixed: Add missing rows "A1:B1" → final result "A1:B6"
- Update docstring with clear explanation of partial overlap behavior
Example:
- frozen_rows=2, cell_range="A2:B6"
- Returns header_range="A1:B1"
- Final merged range: "A1:B6" (includes all frozen rows)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 36d3b32 commit 4081e0d
1 file changed
Lines changed: 14 additions & 3 deletions
File tree
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
| |||
304 | 305 | | |
305 | 306 | | |
306 | 307 | | |
307 | | - | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
308 | 313 | | |
309 | 314 | | |
310 | 315 | | |
| |||
322 | 327 | | |
323 | 328 | | |
324 | 329 | | |
325 | | - | |
326 | | - | |
| 330 | + | |
| 331 | + | |
327 | 332 | | |
328 | 333 | | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
329 | 340 | | |
330 | 341 | | |
331 | 342 | | |
| |||
0 commit comments