(sname, sbox)
| 820 | |
| 821 | # Helper to see whether we are touching a boundary or another subsection |
| 822 | def touching_left(sname, sbox): |
| 823 | if abs(sbox["left"] - sec_left) < 1e-9: |
| 824 | # touches main section left boundary |
| 825 | return True |
| 826 | # touches the right edge of another subsection |
| 827 | for oname, obox in expanded_subs.items(): |
| 828 | if oname == sname: |
| 829 | continue |
| 830 | if abs(right(obox) - sbox["left"]) < 1e-9: |
| 831 | return True |
| 832 | return False |
| 833 | |
| 834 | def touching_right(sname, sbox): |
| 835 | r = right(sbox) |
no test coverage detected