Re: [dev] [dmenu] spurious newlines

From: Troels Henriksen <>
Date: Tue, 06 Dec 2011 09:52:38 +0100 writes:

> Quoting Connor Lane Smith <>:
>> The change was intentional. The logic being that lines go in and a
>> line comes out... Rather than some fragment of a line. (dmenu strips
>> newlines when reading, and restores them when printing.) Is there a
>> reason why you preferred the earlier behaviour?
> No reason to prefer one behavior to another here, but I do prefer
> consistency. =)
> I maintain yeganesh (see <> for more info),
> and profiles have started getting cluttered up with a version with a
> newline and a version without from people upgrading dmenu. However, as
> long as there's a clear policy on which versions will output an extra
> newline it's easy to work around by checking the output of "dmenu -v"
> first.

You could also unconditionally strip trailing newlines, since they will
never be part of a selection proper, but always a terminator.

\  Troels
/\ Henriksen
Received on Tue Dec 06 2011 - 09:52:38 CET

This archive was generated by hypermail 2.3.0 : Tue Dec 06 2011 - 10:00:10 CET