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

interchange-core@icdevgroup.org interchange-core@icdevgroup.org
Wed Mar 26 12:09:00 2003


User:      heins
Date:      2003-03-26 17:08:19 GMT
Modified:  lib/Vend Form.pm
Log:
* Allow table conglomerations of checkboxes and radio boxes with more
  than 9 columns (i.e. radio_right_10).

  Thanks to Bill Carr for finding.

Revision  Changes    Path
2.28      +4 -4      interchange/lib/Vend/Form.pm


rev 2.28, prev_rev 2.27
Index: Form.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Form.pm,v
retrieving revision 2.27
retrieving revision 2.28
diff -u -r2.27 -r2.28
--- Form.pm	13 Mar 2003 22:07:17 -0000	2.27
+++ Form.pm	26 Mar 2003 17:08:19 -0000	2.28
@@ -1,6 +1,6 @@
 # Vend::Form - Generate Form widgets
 # 
-# $Id: Form.pm,v 2.27 2003/03/13 22:07:17 jon Exp $
+# $Id: Form.pm,v 2.28 2003/03/26 17:08:19 mheins Exp $
 #
 # Copyright (C) 1996-2002 Red Hat, Inc. <interchange@redhat.com>
 #
@@ -37,7 +37,7 @@
 require Exporter;
 @ISA = qw(Exporter);
 
-$VERSION = substr(q$Revision: 2.27 $, 10);
+$VERSION = substr(q$Revision: 2.28 $, 10);
 
 @EXPORT = qw (
 	display
@@ -1265,11 +1265,11 @@
 		if($type =~ /nbsp/i) {
 			$opt->{nbsp} = 1;
 		}
-		elsif ($type  =~ /left[\s_]*(\d?)/i ) {
+		elsif ($type  =~ /left[\s_]*(\d*)/i ) {
 			$opt->{breakmod} = $1;
 			$opt->{left} = 1;
 		}
-		elsif ($type  =~ /right[\s_]*(\d?)/i ) {
+		elsif ($type  =~ /right[\s_]*(\d*)/i ) {
 			$opt->{breakmod} = $1;
 			$opt->{right} = 1;
 		}