From: Steve Brokenshire Date: Tue, 31 May 2016 23:05:50 +0000 (+0100) Subject: Check if character is not a newline character X-Git-Tag: release-0.02~251 X-Git-Url: http://Server1/repobrowser/?p=xestiacalendar%2F.git;a=commitdiff_plain;h=887e5cf3e8db9fb0bcc9c48b23310c45feb81d2e Check if character is not a newline character --- diff --git a/source/common/text.cpp b/source/common/text.cpp index d66c3b1..8962edc 100644 --- a/source/common/text.cpp +++ b/source/common/text.cpp @@ -320,7 +320,9 @@ string OutputText(string *TextInput){ if (LineSeek == MaxLineSeek){ - OutputLine += TextInput->substr(CharSeek, 1); + if (TextInput->substr(CharSeek, 1) != "\n"){ + OutputLine += TextInput->substr(CharSeek, 1); + } OutputLine += "\n"; OutputTextData += OutputLine; OutputLine = " ";