Deductions & credits

Thanks I understand what is quoted. I am looking for what is an exception to 'generally'  that may apply to sale of second home or long term capital gain