summaryrefslogtreecommitdiffstats
path: root/lib/Xconfig
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-01 14:45:12 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-01 14:45:12 +0000
commit6833ec97ad02d6725683766ba81c2f5607165b14 (patch)
tree917385cc1e54568927c5db47de8314c1a22924bf /lib/Xconfig
parentc4e1b60d979840110fd9284868148745d619a1c1 (diff)
downloaddrakx-kbd-mouse-x11-6833ec97ad02d6725683766ba81c2f5607165b14.tar
drakx-kbd-mouse-x11-6833ec97ad02d6725683766ba81c2f5607165b14.tar.gz
drakx-kbd-mouse-x11-6833ec97ad02d6725683766ba81c2f5607165b14.tar.bz2
drakx-kbd-mouse-x11-6833ec97ad02d6725683766ba81c2f5607165b14.tar.xz
drakx-kbd-mouse-x11-6833ec97ad02d6725683766ba81c2f5607165b14.zip
get rid of quotes around options, since they really always want a string (or nothing)
nb: may break around things though
Diffstat (limited to 'lib/Xconfig')
-rw-r--r--lib/Xconfig/parse.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Xconfig/parse.pm b/lib/Xconfig/parse.pm
index e7e97f4..619c059 100644
--- a/lib/Xconfig/parse.pm
+++ b/lib/Xconfig/parse.pm
@@ -164,7 +164,7 @@ sub _from_rraw {
_from_rraw($e);
push @{$current->{l}{$e->{name}}}, $e;
} else {
- if (member(lc $e->{name}, @want_string)) {
+ if (member(lc $e->{name}, @want_string) || $e->{Option} && $e->{val}) {
$e->{val} =~ s/^"(.*)"$/$1/ or warn "$e->{name} $e->{val} has no quote\n";
}