One caveat to this approach is that the edit link is what's responsible for the bottom line on the section - which means if this is not present (as by __NOEDITSECTION__) then the whole thing would be broken. This would obviously have to be accounted for.
<div class="editsection"></div> ?