E-PIA: Spaces In iScript Response Are Getting Compressed (Doc ID 2140323.1)

Last updated on DECEMBER 20, 2016

Applies to:

PeopleSoft Enterprise PT PeopleTools - Version 8.54 and later
Information in this document applies to any platform.

Symptoms

People Tools 8.54


In an iScript, the statement Response.WriteLine is used to send the contents of a text file to the browser.
But when the text has multiple spaces, they are compressed into one space so the text looses the formatting.

Also, lines ending with a semi-colon always have the subsequent line appended onto the semi-colon.

REPLICATION STEPS
=================
1) Create a simple iScript, with just this:

Function IScript_Tracer()
%Response.WriteLine("a a a         a");
End-Function;

The output is like this:

a a a a (all extra white spaces are dropped).

2) Change the iScript to:

%Response.WriteLine("a a a a;");
%Response.WriteLine("a a a a;");

The output will appear as: a a a a;a a a a;

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms