]> git.sur5r.net Git - i3/i3/commitdiff
Merge branch 'master' into next
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 25 Jan 2013 12:56:26 +0000 (13:56 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 25 Jan 2013 12:56:26 +0000 (13:56 +0100)
parser-specs/config.spec
testcases/t/201-config-parser.t

index 427d9fc4305cba85be3feef69c024faf1e9d6eb1..7538bf38047cadd4076a0c1d237d884f22a720c1 100644 (file)
@@ -214,7 +214,7 @@ state WORKSPACE_OUTPUT:
       -> WORKSPACE_OUTPUT_STR
 
 state WORKSPACE_OUTPUT_STR:
-  output = string
+  output = word
       -> call cfg_workspace($workspace, $output)
 
 # ipc-socket <path>
index d60107952b6979203ea00e1124c4cd35f73036e6..266d29593e37b923a932f7ed85c085f3e89cb335 100644 (file)
@@ -204,6 +204,24 @@ is(parser_calls($config),
    $expected,
    'workspace_layout ok');
 
+################################################################################
+# workspace assignments, with trailing whitespace (ticket #921)
+################################################################################
+
+$config = <<'EOT';
+workspace "3" output DP-1 
+workspace "3" output           VGA-1   
+EOT
+
+$expected = <<'EOT';
+cfg_workspace(3, DP-1)
+cfg_workspace(3, VGA-1)
+EOT
+
+is(parser_calls($config),
+   $expected,
+   'workspace assignment ok');
+
 ################################################################################
 # new_window
 ################################################################################