From 887e5cf3e8db9fb0bcc9c48b23310c45feb81d2e Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Wed, 1 Jun 2016 00:05:50 +0100 Subject: [PATCH] Check if character is not a newline character --- source/common/text.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 = " "; -- 2.39.2