in reply to force linebreak using HTML::Tree

My idea would be to use a simple substitution statement: $html =~ s/)/)<br>/g. If you need something different or more elaborate, I'll be happy to help.