Ok,
So to verify that I'm not going nuts, I removed the
code that was pulling from my list, and did a direct loop to see what
happens. I tried a bunch of different combinations of chr(13)
and escaped n to no avail.
Here's my
code:
Acl.execute("delete_buffer");
char nl = 13;
String newLine = Character.toString(nl);
for
(int j=0; j<10; j++) {
Acl.execute("insert_buffer(" + newLine + ",0)");
Acl.execute("insert_buffer(" + newLine + newLine
+ ",0)");
Acl.execute("insert_buffer("\n",0)");
Acl.execute("insert_buffer("\\n",0)");
Acl.execute("insert_buffer("TEST TEXT",0)");
}
This yields:
TEST
TEXT TEST TEXT TEST
TEXT TEST TEXT TEST
TEXT
TEST TEXT TEST
TEXT TEST TEXT TEST
TEXT TEST TEXT
I have also tried putting
in the newlines and \n's directly in the string:
String outString =
";
for (int j=0; j<10; j++) {
outString += newLine;
outString += newLine;
outString += "\n";
outString
+= "\\n";
outString += "TEST
TEXT";
}
Acl.execute ("insert_buffer(" + outString +
",0)");
This yields:
TEST
TEXT TEST TEXT TEST
TEXT TEST TEXT TEST
TEXT TEST TEXT
TEST
TEXT TEST TEXT TEST
TEXT TEST TEXT
The results differ slightly, but
each time the newlines seem to be replaced with a space. Also, the
buffer is auto-wrapping the text at somewhere around 75
characters.
Again, this is in Epic 5.1R... so strange.
keith
On 3/29/07, Helberg, Clay <chelberg@spss.com< a=">>
wrote: Hi
Keith--
You
might want to try several levels of meta-escaping, i.e. extra
backslashes. They get consumed at various levels of processing, so
sometimes you need a seemingly preposterous number of backslashes to get
the desired effect.
--Clay
From: -
On Behalf Of Keith Berard
Sent: Thursday,
March 29, 2007 10:47 AM
To: adepters@arbortext.com
Subject: Re:
insert_buffer and linebreaks
Grr... I may have spoke too soon. I'll keep you
posted if I figure out what's going on.
Thanks for the
suggestion though.
keith
On 3/28/07, Paul Nagai <-< a=">> wrote: On
3/28/07, Keith Berard <
keith.berard@milliman.com> wrote:
Paul,
chr(13)
(or technically its java equivalent)
worked.
Thanks,
keith
Excellent!
--
Paul Nagai
>> To unsubscribe from the
list, send an email to listmanager@maillist.arbortext.com with the
following in the body: unsubscribe adepters - For additional
information on the adepters list (how to subscribe or unsubscribe
etc), send an email to: listmanager@maillist.arbortext.com with the
following in the body: info Adepters - You may also go to forums.arbortext.com, enter the Adepters folder
and change your subscription options and preferences.>>
>> To unsubscribe from the
list, send an email to listmanager@maillist.arbortext.com with the
following in the body: unsubscribe adepters - For additional
information on the adepters list (how to subscribe or unsubscribe
etc), send an email to: listmanager@maillist.arbortext.com with the
following in the body: info Adepters - You may also go to forums.arbortext.com, enter the Adepters folder and
change your subscription options and preferences.>>
>> To unsubscribe from the list, send an email to listmanager@maillist.arbortext.com with the following
in the body: unsubscribe adepters - For additional information on the
adepters list (how to subscribe or unsubscribe etc), send an email to:
listmanager@maillist.arbortext.com with the following
in the body: info Adepters - You may also go to forums.arbortext.com, enter the Adepters folder and
change your subscription options and preferences.>>
>> To unsubscribe from the list,
send an email to listmanager@maillist.arbortext.com with the following in
the body: unsubscribe adepters - For additional information on the
adepters list (how to subscribe or unsubscribe etc), send an email to: listmanager@maillist.arbortext.com with the following in
the body: info Adepters - You may also go to forums.arbortext.com,
enter the Adepters folder and change your subscription options and
preferences.>>