"be consistent" | |
PerlMonks |
Re: Here documents in blocks [chomp]by kcott (Archbishop) |
on Dec 20, 2020 at 03:57 UTC ( [id://11125483]=note: print w/replies, xml ) | Need Help?? |
Here's another trick I've used occasionally that involves chomp. The following code will leave a blank line at the end of <pre> blocks when the HTML is rendered:
chomp to the rescue:
It can fix lots of annoying problems like that; not just <pre> blocks. — Ken
In Section
Seekers of Perl Wisdom
|
|