Export to PDF now properly handles collapse macro related to (#13051).