From 8fe5a241345c66a42a8fe97a6400b8d8283c4144 Mon Sep 17 00:00:00 2001
From: An-Cheng Huang <ancheng@vyatta.com>
Date: Fri, 28 May 2010 15:27:27 -0700
Subject: make space after template fields optional

---
 lib/Vyatta/Config.pm | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'lib')

diff --git a/lib/Vyatta/Config.pm b/lib/Vyatta/Config.pm
index 704e761..341c9dd 100755
--- a/lib/Vyatta/Config.pm
+++ b/lib/Vyatta/Config.pm
@@ -888,19 +888,19 @@ sub parseTmplAll {
     } elsif (/^tag:\s*(\S+)?$/) {
 	$ret{tag} = 1;
 	$ret{limit} = $1;
-    } elsif (/^type:\s+(\S+),\s*(\S+)\s*$/) {
+    } elsif (/^type:\s*(\S+),\s*(\S+)\s*$/) {
 	$ret{type} = $1;
 	$ret{type2} = $2;
-    } elsif (/^type:\s+(\S+)\s*$/) {
+    } elsif (/^type:\s*(\S+)\s*$/) {
 	$ret{type} = $1;
-    } elsif (/^default:\s+(\S.*)\s*$/) {
+    } elsif (/^default:\s*(\S.*)\s*$/) {
 	$ret{default} = $1;
 	if ($ret{default} =~ /^"(.*)"$/) {
 	    $ret{default} = $1;
 	}
-    } elsif (/^help:\s+(\S.*)$/) {
+    } elsif (/^help:\s*(\S.*)$/) {
 	$ret{help} = $1;
-    } elsif (/^enumeration:\s+(\S+)$/) {
+    } elsif (/^enumeration:\s*(\S+)$/) {
       $ret{enum} = $1;
     }
   }
-- 
cgit v1.2.3