diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2010-05-28 15:27:27 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2010-05-28 15:27:27 -0700 |
commit | 8fe5a241345c66a42a8fe97a6400b8d8283c4144 (patch) | |
tree | e21cfa3d5b57a370b75b8eee034dc839a153a426 | |
parent | 51b4ed5a4a26591d3449c09a31edb8ba53b322da (diff) | |
download | vyatta-cfg-8fe5a241345c66a42a8fe97a6400b8d8283c4144.tar.gz vyatta-cfg-8fe5a241345c66a42a8fe97a6400b8d8283c4144.zip |
make space after template fields optional
-rwxr-xr-x | lib/Vyatta/Config.pm | 10 |
1 files changed, 5 insertions, 5 deletions
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; } } |