Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #4937 > unrolled thread

Re: ExportString "LineSeparators"-> "\n" ignored?

Started byBill Rowe <readnews@sbcglobal.net>
First post2011-09-14 09:18 +0000
Last post2011-09-14 09:18 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: ExportString "LineSeparators"-> "\n" ignored? Bill Rowe <readnews@sbcglobal.net> - 2011-09-14 09:18 +0000

#4937 — Re: ExportString "LineSeparators"-> "\n" ignored?

FromBill Rowe <readnews@sbcglobal.net>
Date2011-09-14 09:18 +0000
SubjectRe: ExportString "LineSeparators"-> "\n" ignored?
Message-ID<j4prgv$fmd$1@smc.vnet.net>
On 9/13/11 at 7:19 AM, iamhuzhe@gmail.com (Zhe Hu) wrote:

>ExportString[{{1, 2}, {3, 4}}, "Table", "FieldSeparators" -> " ",
>"LineSeparators" -> "\n"] //FullForm

>"1 2\r\n3 4"

>why is it not:

>"1 2\n3 4"

Here I get "1 2\n3 4" as shown by

In[1]:= ExportString[{{1, 2}, {3, 4}}, "Table",
  "FieldSeparators" -> " ", "LineSeparators" -> "\n"] // FullForm

Out[1]//FullForm= "1 2\n3 4"

In[2]:= $Version

Out[2]= 8.0 for Mac OS X x86 (64-bit) (February 23, 2011)

I will guess you are using a Windows machine and this issue is platform specific.

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web