metadata.pl: fix menuconfig code for package features
[openwrt/staging/yousong.git] / scripts / metadata.pl
index 26d878cc9ed0d64685b2285f109c81e9e0f02ee5..54ac06390234d8e173dae9951944d7c4707bf9e1 100755 (executable)
@@ -549,9 +549,10 @@ EOF
                        print <<EOF;
        config FEATURE_$feature->{name}
                bool "$feature->{title}"
-               help
-$feature->{description}
 EOF
+                       $feature->{description} =~ /\w/ and do {
+                               print "\t\thelp\n".$feature->{description}."\n";
+                       };
                }
                print "endchoice\n"
        }