[Bio] / FigWebServices / ProcessTemplate.cgi Repository:
ViewVC logotype

Diff of /FigWebServices/ProcessTemplate.cgi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3, Tue Nov 6 13:54:12 2007 UTC revision 1.4, Thu Dec 6 14:26:02 2007 UTC
# Line 32  Line 32 
32    
33  A comma-separated list of flag names used in the template.  A comma-separated list of flag names used in the template.
34    
35    =item desc
36    
37    The module description.
38    
39  =back  =back
40    
41  =cut  =cut
# Line 39  Line 43 
43  use strict;  use strict;
44  use Tracer;  use Tracer;
45  use CGI;  use CGI;
46    use Text::Wrap;
47    
48  my ($cgi, $varHash) = ScriptSetup();  my ($cgi, $varHash) = ScriptSetup();
49  eval {  eval {
# Line 126  Line 131 
131                      } elsif ($ifStack[$#ifStack]) {                      } elsif ($ifStack[$#ifStack]) {
132                          $retVal .= $parms{$label};                          $retVal .= $parms{$label};
133                      }                      }
134                    } elsif ($label =~ /desc/) {
135                        # DESC: substitute the description. First, insure we're generating.
136                        if ($ifStack[$#ifStack]) {
137                            # Use paragraph formatting.
138                            $retVal .= Text::Wrap::fill("", "", $cgi->param('desc'));
139                        }
140                  } elsif ($label =~ /flag/) {                  } elsif ($label =~ /flag/) {
141                      # FLAG: all flags are ignored. They are used by the if-logic, but                      # FLAG: all flags are ignored. They are used by the if-logic, but
142                      # are not part of the generated code.                      # are not part of the generated code.

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3