Skip to content

Instantly share code, notes, and snippets.

@isapir
Created August 24, 2012 23:15
Show Gist options
  • Select an option

  • Save isapir/3457016 to your computer and use it in GitHub Desktop.

Select an option

Save isapir/3457016 to your computer and use it in GitHub Desktop.
new CFMLWriterWhiteSpacePref test cfm file
<h1>F:\Workspace\git\railo21\railo-java\railo-debug\web\test1.cfm</h1>
<DIV> this should be garbled up in DIV 1345854470755:
8888888b. d8b 888 d8888
888 Y88b Y8P 888 d8P888
888 888 888 d8P 888
888 d88P 8888b. 888 888 .d88b. d8P 888
8888888P" "88b 888 888 d88""88b d88 888
888 T88b .d888888 888 888 888 888 8888888888
888 T88b 888 888 888 888 Y88..88P 888
888 T88b "Y888888 888 888 "Y88P" 888
</DIV>
<PRE>this should look fine in PRE 1345854470755:
8888888b. d8b 888 d8888
888 Y88b Y8P 888 d8P888
888 888 888 d8P 888
888 d88P 8888b. 888 888 .d88b. d8P 888
8888888P" "88b 888 888 d88""88b d88 888
888 T88b .d888888 888 888 888 888 8888888888
888 T88b 888 888 888 888 Y88..88P 888
888 T88b "Y888888 888 888 "Y88P" 888
</PRE>
<br> <br> <br> <br> <br>
<br> <br> <br> <br> <br>
The Time IS {ts '2012-08-24 17:27:51'}
<br> <br> <br> <br> <br>
<br> <br> <br> <br> <br>
<p>1 -odd!
<p>2
<p>3 -odd!
<p>4
<p>5 -odd!
<p>6
<p>7 -odd!
<p>8
<p>9 -odd!
<p>10
<p>this line has 4 spaces between each word.
new line
every two
words !
<p>1 -odd! <p>2 <p>3 -odd! <p>4 <p>5 -odd! <p>6 <p>7 -odd! <p>8 <p>9 -odd! <p>10
<textarea id="ta1" rows="5" cols="80" style="background-color:#CCF;">
this should be pre formatted text
with three spaces between each
word
.
</textarea>
the following line has some junk
<pre></pre></pre></pre>
with extra closing PRE tags
<PRE>
this should be pre formatted text
with three spaces between each
word
.
</PRE> (post-pre)
and now we're out of the PRE tag
[*]
<cfoutput>
<h1>#GetCurrentTemplatePath()#</h1>
<DIV> this should be garbled up in DIV #GetTickCount()#:
8888888b. d8b 888 d8888
888 Y88b Y8P 888 d8P888
888 888 888 d8P 888
888 d88P 8888b. 888 888 .d88b. d8P 888
8888888P" "88b 888 888 d88""88b d88 888
888 T88b .d888888 888 888 888 888 8888888888
888 T88b 888 888 888 888 Y88..88P 888
888 T88b "Y888888 888 888 "Y88P" 888
</DIV>
<PRE>this should look fine in PRE #GetTickCount()#:
8888888b. d8b 888 d8888
888 Y88b Y8P 888 d8P888
888 888 888 d8P 888
888 d88P 8888b. 888 888 .d88b. d8P 888
8888888P" "88b 888 888 d88""88b d88 888
888 T88b .d888888 888 888 888 888 8888888888
888 T88b 888 888 888 888 Y88..88P 888
888 T88b "Y888888 888 888 "Y88P" 888
</PRE>
<br> <br> <br> <br> <br>
<br> <br> <br> <br> <br>
The Time IS #now()#
<br> <br> <br> <br> <br>
<br> <br> <br> <br> <br>
<cfloop from="1" to="10" index="ii">
<p>#ii#<cfif ii MOD 2> -odd!</cfif>
</cfloop>
<p>this line has 4 spaces between each word.
new line
every two
words !
<cfloop from="1" to="10" index="ii"><p>#ii#<cfif ii MOD 2> -odd!</cfif> </cfloop>
<textarea id="ta1" rows="5" cols="80" style="background-color:##CCF;">
this should be pre formatted text
with three spaces between each
word
.
</textarea>
the following line has some junk
<pre></pre></pre></pre>
with extra closing PRE tags
<PRE>
this should be pre formatted text
with three spaces between each
word
.
</PRE> (post-pre)
and now we're out of the PRE tag
</cfoutput>[*]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment