wagnerdm_AT_seas.upenn.edu writes:
> Quoting Connor Lane Smith <cls_AT_lubutu.com>:
>
>> 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 <http://dmwit.com/yeganesh> 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