HTML-TableExtract - breaking lines on tag br and also on br with slash

Posted on Tue Sep 5 20:40:49 2006 by jochenhayek
breaking lines on tag br and also on br with slash

The module has a feature, that is called "br_translate", and it replaces occurrences of the tag br by "\n".

This has been rather fine and sufficient for me so far.

But recently one of the HTML files, that I process with this module, started showing <br/> instead of just <br>.

I replaced the simple comparison (eq 'br') by a pattern match ( =~ m/^br\/?$/ ), so that both versions are covered, and now it worked fine for me again.

I am posting this note, because I want to ask, whether people think, that this change makes sense to get incorporated into the public release of this module on CPAN.

Write a response