$a ="nessun record presente";
$testo = str_replace($a,$a.PHP_EOL,$testo);

premetto che $testo contiene il tuo testo.