diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | lib/keyboard.pm | 13 |
2 files changed, 9 insertions, 6 deletions
@@ -1,3 +1,5 @@ +- fix generating 00-keyboard.conf (mga#19761) + Version 1.17 - 8 November 2016 - drop support for Alpha/PPC/SPARC diff --git a/lib/keyboard.pm b/lib/keyboard.pm index 968e79d..cbcd4ce 100644 --- a/lib/keyboard.pm +++ b/lib/keyboard.pm @@ -602,11 +602,12 @@ sub write { addVarsInShMode("$::prefix/etc/vconsole.conf", 0644, $h2); } - my $xorgconf = "# Read and parsed by systemd-localed. It's probably wise not to edit this file\n" . - "# manually too freely.\n" . - q(Section "InputClass"\n) . - qq( Identifier "system-keyboard"\n) . - q( MatchIsKeyboard "on"\n); + my $xorgconf = qq(# Read and parsed by systemd-localed. It's probably wise not to edit this file +# manually too freely. +Section "InputClass" + Identifier "system-keyboard" + MatchIsKeyboard "on" +); my $isus = $keyboard->{XkbLayout} && $keyboard->{XkbLayout} eq "us"; # kbd_option => enabled? my %is_opt_enabled = ( @@ -617,7 +618,7 @@ sub write { ); foreach my $opt (keys %is_opt_enabled) { if ($keyboard->{$opt} && $is_opt_enabled{$opt}) { - $xorgconf .= sprintf(q( Option "%s" "%s"\n), $opt, $keyboard->{$opt}); + $xorgconf .= sprintf(q( Option "%s" "%s") . "\n", $opt, $keyboard->{$opt}); } } $xorgconf .= "EndSection\n"; |