Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Check if character is not a newline character
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Tue, 31 May 2016 23:05:50 +0000 (00:05 +0100)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Tue, 31 May 2016 23:05:50 +0000 (00:05 +0100)
source/common/text.cpp

index d66c3b1..8962edc 100644 (file)
@@ -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 = " ";
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy