I have a file being created out of a string created in a web app. At the end of each line in the string I’ve added EndOfLine or endofline.unix on the cloud as shown in the example below.
Example:
dim sttXMLm as string
dim mFormFileName as String
dim mpFilename as String
dim fm as FolderItem
dim xmlDatam as TextOutputStream
strXMLm = "</acaBusHeader:ACABusinessHeader>" + EndOfLine _
"<ACATransmitterManifestReqDtl>" + EndOfLine _
"<PaymentYr>" + strCalendarYear + "</PaymentYr>" + EndOfLine _
"<PriorYearDataInd>0</PriorYearDataInd>" + EndOfLine
mFormFileName = "1094C_Request_" + str(now) + "Z.xml"
#if TargetXojoCloud then
mpFileName = "/home/sites/www.example.com/Shared_Documents/" + Trim(strAppFolder) + "/Download/" + mFormFileName
#else
mpFileName = mFormFileName
#Endif
fm = GetFolderItem(mpFileName)
xmlDatam = TextOutputStream.Create(fm)
xmlDatam.Write(strXMLm)
xmlDatam.Close
When the file is created in debug or standalone and viewed in a text editor with the end of line done correctly. </acaBusHeader:ACABusinessHeader>
<ACATransmitterManifestReqDtl>
<PaymentYr>2015</PaymentYr>
<PriorYearDataInd>0</PriorYearDataInd>
When the file is created on the cloud and then viewed in a text editor, the EndOfLine is ignored.
</acaBusHeader:ACABusinessHeader><ACATransmitterManifestReqDtl><PaymentYr>2015</PaymentYr><PriorYearDataInd>0</PriorYearDataInd>
I do my development, debugging, and StandAlone Testing on Windows. I’ve also tried Xojo 2015R4.1 and 2016R1.1 at this point
Is this related to differences in the OS or CGI deployment or is this a bug in the IDE that needs to be reported?
If this is related to the OS or CGI deployment, what is the workaround?
Note: in this case the final file is an XML fine and an XML viewer does display the file correctly but not in a text editor.