X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcommon%2Ftext.cpp;h=8962edc8d1ba46cd9416536a3fdfb67cd971a481;hb=e3d8dbb679810e76bfdd39b1191efe5139936d85;hp=1768488ac083db5cc54f55b5ad180cb8852a8813;hpb=9cfe89f551413dcf49e5de07137379c90ffce887;p=xestiacalendar%2F.git diff --git a/source/common/text.cpp b/source/common/text.cpp index 1768488..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 = " "; @@ -334,7 +336,11 @@ string OutputText(string *TextInput){ } - OutputTextData += OutputLine; + if (OutputLine != " "){ + + OutputTextData += OutputLine; + + } return OutputTextData;