From: <dba...@us...> - 2011-03-18 00:24:23
|
Revision: 219 http://devmon.svn.sourceforge.net/devmon/?rev=219&view=rev Author: dbaldwin Date: 2011-03-18 00:24:17 +0000 (Fri, 18 Mar 2011) Log Message: ----------- enforce whitespace surrounded x in MATH transforms file template checking Modified Paths: -------------- trunk/modules/dm_templates.pm Modified: trunk/modules/dm_templates.pm =================================================================== --- trunk/modules/dm_templates.pm 2011-03-18 00:17:03 UTC (rev 218) +++ trunk/modules/dm_templates.pm 2011-03-18 00:24:17 UTC (rev 219) @@ -544,10 +544,10 @@ $func_type eq 'math' and do { $temp =~ s/:\s*\d+\s*$//; - $temp =~ s/\{\s*\S+?\s*\}|\s|\s\.\s|x|\+|\/|-|\^|%|\||&|\d+(\.\d*)?|\(|\)\s*//g; + $temp =~ s/\{\s*\S+?\s*\}|\s\.\s|\sx\s|\+|\/|-|\^|%|\||&|\d+(\.\d*)?|\(|\)\s*//g; do_log("MATH transform uses only math/numeric symbols and an " . "optional precision number at $trans_file, line $l_num", 0) - and next LINE if $temp ne ''; + and next LINE if $temp !~ /^\s*$/; last CASE; }; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |