ported r254 from hidra branch
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 9 Mar 2004 12:18:17 +0000 (12:18 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 9 Mar 2004 12:18:17 +0000 (12:18 +0000)
git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@256 13eb9ef6-21d5-0310-b721-a9d68796d827

all2xml.pl

index bc764df..d6f704a 100755 (executable)
@@ -292,20 +292,15 @@ sub data2xml {
                                }
                                # type="swish" ; field for swish
                                if ($swish) {
+                                       my $tmp;
                                        if ($filter && ($s || $se)) {
                                                no strict 'refs';
-                                               my $tmp = join(" ",&$filter($swish)) if ($s || $se);
-                                               $swish_data .= $tmp if ($s);
-                                               $swish_exact_data .= "xxbxx $tmp xxexx " if ($se && $tmp ne "");
-
-                                       } else {
-                                               $swish_data .= $swish if ($s);
-                                               $swish_exact_data .= "xxbxx $swish xxexx " if ($se && $swish ne "");
+                                               $tmp = join(" ",&$filter($swish)) if ($s || $se);
                                        }
 
                                        $tmp = chk_eval($tmp);
                                        $swish_data .= $tmp if ($s && $tmp);
-                                       $swish_exact_data .= "xxbxx $tmp xxexx " if ($se && $tmp ne "");
+                                       $swish_exact_data .= "xxbxx $tmp xxexx " if ($tmp && $tmp ne "" && $se);
                                }
 
                                # type="display" ; field for display