http://www.perlmonks.org?node_id=939254


in reply to losing html in print calling function.

For other monks: The rendering problem shows up for me in Firefox, but not Opera or Safari.

Your HTML looks like this:

<br><center>Apples, 216<Br> <br><center>Apples, Aphis, 228<Br> <br><center>Apples, Bitter Rot, 223<Br> <br><center>Apples, Borers, 226, 270<Br> <br><center>Apples, Brown Rot, 224, 275<Br>
In HTML, the BR tag, like an IMG tag, stands alone; no closing /BR is needed, or even allowed. The CENTER tag, like most tags in HTML, is *paired*, and requires a closing /CENTER tag. By using so many (over 256?) CENTER tags without closing them, you are creating so many nested levels for the browser to keep track of, that it gives up trying.

When I changed your HTML to close (or "balance") the tags, it renders properly:

<center>Apples, 216</center><br> <center>Apples, Aphis, 228</center><br> <center>Apples, Bitter Rot, 223</center><br> <center>Apples, Borers, 226, 270</center><br> <center>Apples, Brown Rot, 224, 275</center><br>