set_tags_kind() uses this code to verify the tag kind:
if ($_ ne 'translate' && $_ ne 'empty' && $_ ne
'verbatim' && $_ ne 'ignore' && $_ ne 'indent');
This seemed pretty long and unclear so I changed it to the equivalent:
if ($_ !~ /^(translate|empty|verbatim|ignore|indent)$/);
Which I feel is more compact, readable and maintainable. But as I said
the two are functionally equivalent so it's partly a matter of taste.
Anyway, here's the patch.
Changelog:
* po4a/lib/Locale/Po4a/Sgml.pm
Francois Gouget <fgouget(a)free.fr>
Use a regular expression to simplify the tag kind check.
--
Francois Gouget fgouget(a)free.fr
http://fgouget.free.fr/
Nouvelle version : les anciens bogues ont \xE9t\xE9 remplac\xE9s par de nouveaux.