Replace newline characters with whitespace

pull/4/head
Moritz Luedecke 7 years ago
parent 2054d41f37
commit 3a47ab1cec

@ -177,6 +177,13 @@ drawwin(void) {
pbw = MIN(pbw, pb); pbw = MIN(pbw, pb);
pb = mw - pbw; pb = mw - pbw;
desc = pinentry->description; desc = pinentry->description;
for (i = 0; i < pdesclen; i++) {
if (desc[i] == '\n') {
desc[i] = ' ';
}
}
drw_setscheme(drw, scheme[SchemeDesc]); drw_setscheme(drw, scheme[SchemeDesc]);
drw_text(drw, pb, 0, pbw, bh, lrpad / 2, desc, 0); drw_text(drw, pb, 0, pbw, bh, lrpad / 2, desc, 0);
} else { } else {

Loading…
Cancel
Save