Lucee haemorrahges whitespace

Description

Whilst running the code Described in LDEV-427, I noticed Lucee absolutely floods the response with emitted whitespace. This is really odd given the code is mostly script.

Now I'm not generally one to worry about emitted whitespace, but it seems there's something wrong if script is emitting any. Also... the output for that code was 4000 (!!!) lines long. For about 20 lines of mark-up. You can do better than this, I suspect?

Environment

None

Activity

Adam Cameron 
14 September 2015 at 14:49

Ah yeah. Sorry, so unused to using tags I forgot what a blight they are when it comes to this sort of thing. Having compared to CF11, it's about the same.

Michael Offner 
14 September 2015 at 13:42
(edited)

this whitespace (like any) come from your code, in the "compareWithNumericOperations.cfm" you have an include to "numericOperationTagBasedTests.cfm" on line 13, this include has 2 loops that run ```URL.iterations*2``` times and producing 2 line breaks and one tab with every iteration.

code in question:

<cfloop index="i" from="1" to="#URL.iterations#"> <cfset sum = sum + i> </cfloop> ... <cfset sum = 0> <cfset start = getTickCount()> <cfloop index="i" array="#array#"> <cfset sum = sum + i> </cfloop>
Fixed

Details

Assignee

Reporter

Priority

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 11 July 2015 at 07:51
Updated 14 September 2015 at 14:49
Resolved 14 September 2015 at 13:43