Bugfix: parse outputs as "word", not "string", to ignore trailing whitespace (Thanks leifarne)

fixes #921
next
Michael Stapelberg 2013-01-25 13:55:26 +01:00
parent 70067c72d5
commit 8bc771ac16
2 changed files with 19 additions and 1 deletions

View 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>

View 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
################################################################################