Email template - Output bug


As attached i designed email template assigned for workflow to send email every time the due date of deadline pass

The problem is i have some lines scrambled & the case number can’t show on the email subject

I need help as soonest as my trials failed to deliver complete successful output

How can i issue flawless email template?