tracker issue : CF-4200441

select a category, or use search below
(searches all categories and all time range)
Title:

WriteDump() should have an option to output to a new line

| View in Tracker

Status/Resolution/Reason: To Fix//EnhancementRequired

Reporter/Name(from Bugbase): Dave Levin / Dave Levin ()

Created: 12/22/2017

Components: Language, Functions

Versions: 2016

Failure Type: Others

Found In Build/Fixed In Build: /

Priority/Frequency: Normal /

Locale/System: / Windows 10 64 bit

Vote Count: 1

It would be great if writeDump() could have an optional attribute to output a string to its own line.  Obviously if you're using writeDump() on an object it already does this, but it could also be helpful for simple string data as well.

Possible syntax:
writeDump(varName, [true|false])

Attachments:

Comments:

Of course, this is assuming you don't want to just use writeoutput for some reason (to output a simple variable). And lest anyone wonder, you can't just add a br tag within the writedump argument (of what's to be dumped) because CF htmlencodes it. But sure, if perhaps one is using writedump while looping over some variables, and sometimes the variable may be complex and sometimes it may be simple, it could be helpful to have an argument that tells the function to create a newline (br tag) either above or below. But I understand some may think this to be a very low priority. And you can see more discussion of this in the forum thread Dave had opened (before filing this, which led to this) at https://forums.adobe.com/message/10057877
Comment by Charlie A.
157 | December 22, 2017 07:10:39 PM GMT