Connecting Tech Pros Worldwide Forums | Help | Site Map

WRAP function not working

Newbie
 
Join Date: Dec 2008
Posts: 29
#1: Apr 8 '09
Expand|Select|Wrap|Line Numbers
  1. <h3>Wrap Example</h3>
  2. <cfset inputText1="Inserts line break at the location of the first white space character (such as a space, tab, or new line) before the specified limit on a line. If a line has no whitespace characters before the limit, inserts a line break at the limit. Uses the operating-system specific line break: newline for UNIX, carriage return and newline on Windows.If you specify the strip parameter, all existing line breaks are removed, so any paragraph formatting is lost.Use this function to limit the length of text lines, such as text to be included in a mail message. The cfmail and cfmailpart tag wraptext attributes use this function ">
  3. <cfoutput>#Wrap(inputText1,70)#</cfoutput>
  4.  
  5. <cfdocument filename="d:\pdft.pdf" overwrite="true" format="pdf">
  6. <h3>Wrap Example</h3>
  7. <cfset inputText="Inserts line break at the location of the first white space character (such as a space, tab, or new line) before the specified limit on a line. If a line has no whitespace characters before the limit, inserts a line break at the limit. Uses the operating-system specific line break: newline for UNIX, carriage return and newline on Windows.If you specify the strip parameter, all existing line breaks are removed, so any paragraph formatting is lost.Use this function to limit the length of text lines, such as text to be included in a mail message. The cfmail and cfmailpart tag wraptext attributes use this function ">
  8. <cfoutput>#Wrap(inputText,70)#</cfoutput>
  9.  
  10. </cfdocument>


this code not working ..could u plz?word not wrapingg

acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#2: Apr 9 '09

re: WRAP function not working


Is it not working in both cases or just within cfdocument?
Reply


Similar ColdFusion bytes