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 p
In 4.4 (and 4.4.1), dmenu starting printing spurious newlines. The
problem seems to be a switch from fputs to puts; here's a patch that
reverts this change.
Apologies if the newlines were an intentional side-effect of this
change; I checked the mailing list for the two weeks around the chan