This is just a quick little trick for outputting a list of items with proper spacing. You can use ColdFusion ValueList() using a delimiter that has both a comma AND a space in it: ", ". While this is not really a valid delimiter, which is defined as one character, the ValueList() method will still use both characters when creating the delimited list. Now, you have a nicely spaced list.
<cfquery name="qTags" datasource="..."> SELECT name FROM tag ORDER BY name ASC </cfquery> <!--- Output nicely formatted tag list. ---> Tags: #ValueList( qTags.name, ", " )#
Want to use code from this post? Check out the license.