Browse Source

Allow whitespace and other special characters in generate expressions from arrays

Matthias Schiffer 10 years ago
parent
commit
5fb924193d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/generate.pl

+ 1 - 1
scripts/generate.pl

@@ -13,7 +13,7 @@ sub add_config {
 			add_config($key . '.', $val);
 		}
 		elsif (ref($val) eq 'ARRAY') {
-			$config{'@' . $prefix . $key . '@'} = join ' ', @{$val};
+			$config{'@' . $prefix . $key . '@'} = join ' ', map {s/'/'\\''/g; "'" . $_ . "'"} @{$val}
 		}
 		unless (ref($val)) {
 			$config{'@' . $prefix . $key . '@'} = $val;