From 6dd3703a4caafff9a56d878ffac6ce322739067d Mon Sep 17 00:00:00 2001 From: yexo Date: Mon, 2 Mar 2009 21:01:19 +0000 Subject: [PATCH] (svn r15600) -Fix (r0): Replace a newline in a news message by four spaces before drawing it in the statusbar. --- src/statusbar_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/statusbar_gui.cpp b/src/statusbar_gui.cpp index 56d203a10c..447892ec13 100644 --- a/src/statusbar_gui.cpp +++ b/src/statusbar_gui.cpp @@ -40,7 +40,7 @@ static bool DrawScrollingStatusText(const NewsItem *ni, int pos, int width) WChar c = Utf8Consume(&s); if (c == 0) { break; - } else if (c == 0x0D) { + } else if (c == '\n') { if (d + 4 >= last) break; d[0] = d[1] = d[2] = d[3] = ' '; d += 4;