Dug through the source code and hacked Web::Scraper to add the following to line #118: $t->no_space_compacting(1)
This changes the behavior of HTML::TreeBuilder module used by Web::Scraper to find the nodes in the HTML document. Maybe there is a better way, though?
UPDATE: this comment was made shortly after first comment without seeing it so is duplicative.
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest Vicar";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks
In reply to Re: Preserving newlines with Web::Scraper
by nysus
in thread Preserving newlines with Web::Scraper
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |