[interchange-cvs] interchange - heins modified lib/Vend/Form.pm

interchange-core@interchange.redhat.com interchange-core@interchange.redhat.com
Fri Feb 8 22:17:00 2002


User:      heins
Date:      2002-02-09 03:16:05 GMT
Modified:  lib/Vend Form.pm
Log:
	* Add option to allow ITL in form fields if needed.

Revision  Changes    Path
2.14      +3 -2      interchange/lib/Vend/Form.pm


rev 2.14, prev_rev 2.13
Index: Form.pm
===================================================================
RCS file: /anon_cvs/repository/interchange/lib/Vend/Form.pm,v
retrieving revision 2.13
retrieving revision 2.14
diff -u -r2.13 -r2.14
--- Form.pm	8 Feb 2002 23:08:21 -0000	2.13
+++ Form.pm	9 Feb 2002 03:16:05 -0000	2.14
@@ -1,6 +1,6 @@
 # Vend::Form - Generate Form widgets
 # 
-# $Id: Form.pm,v 2.13 2002/02/08 23:08:21 mheins Exp $
+# $Id: Form.pm,v 2.14 2002/02/09 03:16:05 mheins Exp $
 #
 # Copyright (C) 1996-2001 Red Hat, Inc. <interchange@redhat.com>
 #
@@ -37,7 +37,7 @@
 require Exporter;
 @ISA = qw(Exporter);
 
-$VERSION = substr(q$Revision: 2.13 $, 10);
+$VERSION = substr(q$Revision: 2.14 $, 10);
 
 @EXPORT = qw (
 	display
@@ -1067,6 +1067,7 @@
 
 	$opt->{value} = $opt->{default} if ! defined $opt->{value};
     $opt->{encoded} = encode($opt->{value}, $ESCAPE_CHARS::std);
+    $opt->{value} =~ s/&#91;/\[/g if $opt->{enable_itl};
 
 	# Action taken for various types
 	my %daction = (