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

About this user

Constandinos

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

Customtag to remove blank lines

// 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.

   1  
   2  <cfif thisTag.ExecutionMode IS "end">
   3  	<cfset thisTag.generatedContent =  ReReplaceNoCase(thisTag.generatedContent, '(?m)^\s+\r\n', '', "ALL")>
   4  </cfif>
« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS