[epub, mobi] fix for notes without margin-bottom. Issue #2567