Skip to content

Commit 8cce06f

Browse files
committed
make sure that no tab on carriage return is in the doc with fish
because it is just not supported by the fish completion format
1 parent af92cb2 commit 8cce06f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

click_completion/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def do_fish_complete(cli, prog_name):
144144

145145
for item, help in get_choices(cli, prog_name, args, incomplete):
146146
if help:
147-
echo("%s\t%s" % (item, help))
147+
echo("%s\t%s" % (item, re.sub('\s', ' ', help)))
148148
else:
149149
echo(item)
150150

0 commit comments

Comments
 (0)