Have an account? Sign in
"*" indicates required fields
You agree that CreativePro Network may send you emails, including the newsletter selections above. You can unsubscribe at any time.
By signing in, you agree to our Terms of Use and acknowledge our Privacy Notice.
New user? Create an account
By signing in, you agree to our Terms of Use and acknowledge our Privacy Notice.
Thanks for the help. The problem is indeed with the line endings. The tagged text file is generated programmatically on a Windows machine and targeted for import into the Mac version of InDesign. The first line is <ASCII-MAC> so apparently the tagged-text parser is expecting carriage returns for line endings. If it has Windows line endings (CR+LF), it gets treated as a plain text file on import instead of a tagged text file.
The solution was to modify the Windows application that generates the tagged text file to use CRs for line endings. Now it imports correctly as tagged text.
For anyone generating tagged text with VB.NET, here is how you can change the default line endings for a StreamWriter:
Dim fsOut = New FileStream(outFile, FileMode.Create, FileAccess.Write)
Dim textOut = New StreamWriter(fsOut)
textOut.NewLine = ControlChars.Cr
Thanks again for the help.
Rick
Thanks for the help. The problem is indeed with the line endings. The tagged text file is generated programmatically on a Windows machine and targeted for import into the Mac version of InDesign. The first line is <ASCII-MAC> so apparently the tagged-text parser is expecting carriage returns for line endings. If it has Windows line endings (CR+LF), it gets treated as a plain text file on import instead of a tagged text file.
The solution was to modify the Windows application that generates the tagged text file to use CRs for line endings. Now it imports correctly as tagged text.
For anyone generating tagged text with VB.NET, here is how you can change the default line endings for a StreamWriter:
Dim fsOut = New FileStream(outFile, FileMode.Create, FileAccess.Write)
Dim textOut = New StreamWriter(fsOut)
textOut.NewLine = ControlChars.Cr
Thanks again for the help.
Rick
This site uses cookies, but not the kind you eat. We use cookies to remember log in details, provide secure log in, improve site functionality, and deliver personalized content. By continuing to browse the site, you accept cookies.