Print format text display error

I wrote a script in edit heading and the result appears on the preview like this:


But it is not visible in salary slip print tab

Please verify the condition again, reload, and check. Ensure that the selected format is correct.