# HG changeset patch
# User Mark Stosberg <mark@stosberg.com>
# Date 1596337067 14400
# Sat Aug 01 22:57:47 2020 -0400
# Node ID 3feeb1a4b70b52d9eb56b96681d4c39dd3077588
# Parent 7969d3f0cc9975492deac254e05124f7dda8cf4d
fix shell escaping issue in man page example.
The "\t" wasn't escaped for the man page formatting, so it was coming out as an empty string.
I tried fixing it with "\\t". That technically worked but resulted inconsistent spacing depending
on how many digits were in the IDs. Switching to a space here resolves the issue and provides
visually consistent formatting.
diff --git a/man/wofi.7 b/man/wofi.7
--- a/man/wofi.7+++ b/man/wofi.7
@@ -90,7 +90,7 @@
swaymsg \-t get_tree |
.br
- jq \-r '.nodes[].nodes[] | if .nodes then [recurse(.nodes[])] else [] end + .floating_nodes | .[] | select(.nodes==[]) | ((.id | tostring) + "\t" + .name)' |+ jq \-r '.nodes[].nodes[] | if .nodes then [recurse(.nodes[])] else [] end + .floating_nodes | .[] | select(.nodes==[]) | ((.id | tostring) + " " + .name)' |.br
wofi \-\-show dmenu | {
.br