Rendered output has ALWAYS a precedent empty line, delete it!

Description

Looking at the source code of your Browser you will find that output of 4.2 will always have a precedent empty line, while 4.1 had not.

Activity

Show:
Brad Wood
August 10, 2016, 5:44 PM

Luis Majano
August 10, 2016, 5:47 PM

Sometimes the issue is that white space in cf sucks. Ito solve everything I would have to code everything in one line.

Brad Wood
August 10, 2016, 5:49 PM

Looks like the issue got way better in ColdBox 4. Backporting my sample app to Coldbox 3.8.1 had 130 extra lines of whitespace! The script conversion probably got rid of a bunch of the tag functions that were leaking whitespace. We just need to track down the function still left in ColdBox 4 that doesn't have output=false.

Brad Wood
August 10, 2016, 7:35 PM

I have located the issue. It's in the InterceptorService because output is set to true in the processState method. I have converted this method to script (and output is still set to true!) and the extra whitespace is now gone. Pull request coming soon.

Brad Wood
August 10, 2016, 7:43 PM

The whitespace issue is resolved with this pull:
https://github.com/ColdBox/coldbox-platform/pull/281

Fixed

Assignee

Brad Wood

Reporter

MartinS

Labels

Time tracking

0m

Time remaining

1h

Components

Fix versions

Affects versions

Priority

Minor
Configure