Another clarification: these parts of the code seem to be very inconsistent over the different versions of the boards.
Some versions have only
$Body = preg_replace("/\n/i","<br />",$Body);
some do it twice for the same variable....
Your best bet to find all occurances of the break tag substitution is to search for
"<br />"
(including the quotes) in connection with the $Body, $Body_q and the $PrintBody variables.