Repository navigation
Commit 5210f67
Fix astropy#11486
It is possible in certain cases for a commentary card (HISTORY or
COMMENT) to be stored in a single Card object with a value too long to
fit in a single physical FITS card.
In these cases the logical card's "image" (its physical representation)
is multiple cards concentated together, and neither the _itersubcards()
nor _split() methods handled this case properly.
For some reason these code paths were previously avoided for these long
commentary cards, but after astropy#11108 tried to reuse _split() in more
places it did not handle this case properly.1 parent b3b8d19 commit 5210f67
2 files changed
Lines changed: 42 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
806 | 806 | | |
807 | 807 | | |
808 | 808 | | |
809 | | - | |
| 809 | + | |
| 810 | + | |
810 | 811 | | |
811 | 812 | | |
812 | 813 | | |
| |||
816 | 817 | | |
817 | 818 | | |
818 | 819 | | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
819 | 824 | | |
820 | 825 | | |
821 | 826 | | |
| |||
831 | 836 | | |
832 | 837 | | |
833 | 838 | | |
834 | | - | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
835 | 844 | | |
836 | 845 | | |
837 | 846 | | |
| |||
1159 | 1168 | | |
1160 | 1169 | | |
1161 | 1170 | | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
1162 | 1175 | | |
1163 | 1176 | | |
1164 | 1177 | | |
1165 | 1178 | | |
1166 | 1179 | | |
1167 | 1180 | | |
1168 | | - | |
| 1181 | + | |
1169 | 1182 | | |
1170 | 1183 | | |
1171 | | - | |
| 1184 | + | |
| 1185 | + | |
1172 | 1186 | | |
1173 | 1187 | | |
1174 | 1188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2375 | 2375 | | |
2376 | 2376 | | |
2377 | 2377 | | |
| 2378 | + | |
| 2379 | + | |
| 2380 | + | |
| 2381 | + | |
| 2382 | + | |
| 2383 | + | |
| 2384 | + | |
| 2385 | + | |
| 2386 | + | |
| 2387 | + | |
| 2388 | + | |
| 2389 | + | |
| 2390 | + | |
| 2391 | + | |
| 2392 | + | |
| 2393 | + | |
| 2394 | + | |
| 2395 | + | |
| 2396 | + | |
| 2397 | + | |
| 2398 | + | |
| 2399 | + | |
| 2400 | + | |
| 2401 | + | |
2378 | 2402 | | |
2379 | 2403 | | |
2380 | 2404 | | |
| |||
0 commit comments