diff options
Diffstat (limited to 'blog/builddb.pl')
-rwxr-xr-x | blog/builddb.pl | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/blog/builddb.pl b/blog/builddb.pl index 36e09a68..74bd5d99 100755 --- a/blog/builddb.pl +++ b/blog/builddb.pl @@ -81,14 +81,11 @@ sub buildconfigure($$) $c = $rch->{"$_.content"}; open FH, ">$outdir/$fn"; - if( $c =~ m|<attribute>(.*?)</attribute>(.*)|s ){ + if( $c =~ m|<attribute>(.*?)\n\s*</attribute>\s*\n(.*)|s ){ ($a, $c) = ($1, $2); $a =~ s/^\s*\#.*?\n//gm; foreach( split("\n", $a) ){ - if( /^\s*(\w+):\s+(.*)/ ){ - $attr{"$fn.$1"} = $2; - print "\t$1: $2\n"; - } + $attr{"$fn.$1"} = $2 if( /^\s*(\w+):\s+(.*)/ ); } } print FH $c; |