Skip to content

Commit 908d056

Browse files
committed
Remove trailing whitespace from subcommand help
This is trivial but it annoys me since I use the emacs mode that displays trailing whitespace by default.
1 parent 9dd6f7f commit 908d056

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

help.dylan

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,11 @@ define function print-help
161161
if (~empty?(names))
162162
let name-width = reduce1(max, map(size, names));
163163
for (name in names, doc in docs)
164-
format(stream, "%s %s\n", pad-right(name, name-width), doc);
164+
if (empty?(doc))
165+
format(stream, "%s\n", name);
166+
else
167+
format(stream, "%s %s\n", pad-right(name, name-width), doc);
168+
end;
165169
end;
166170
end;
167171
format(stream, "\n");

0 commit comments

Comments
 (0)