Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Customtag to remove blank lines (See related posts)

// description of your code here
Coldfusion output has a lot of useless blank lines and makes the HTML code hard to read. I use this customtag to remove the blank lines.

<cfif thisTag.ExecutionMode IS "end">
	<cfset thisTag.generatedContent =  ReReplaceNoCase(thisTag.generatedContent, '(?m)^\s+\r\n', '', "ALL")>
</cfif>

You need to create an account or log in to post comments to this site.


Click here to browse all 5059 code snippets

Related Posts