- { splice @text, $i, 1, (split /(?<=\n)/, $text[$i]); }
+ {
+ if ($text[$i] =~ ?<title>Exim's interfaces to mail filtering</title>?)
+ {
+ splice @text, $i, 1, (split /(?=<div class="chapter")/, $text[$i]);
+ $text[$i] =~ s/>\s*/>\n/g;
+ splice @text, $i, 1, (split /(?<=\n)/, $text[$i]);
+ last;
+ }
+ }