Bugfix: parse outputs as "word", not "string", to ignore trailing whitespace (Thanks leifarne)
fixes #921
This commit is contained in:
parent
70067c72d5
commit
8bc771ac16
@ -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>
|
||||
|
@ -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
|
||||
################################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user