Tcl Powered!NeoWebScript

Home
 
Download
User Info
New User FAQ
Tutorials
Demos
Commands
Variables
Troubleshooting
Sysop Info
Sysop FAQ
Theory
Installation
Management
Tests
Troubleshooting
Feedback
Resources
Release Notes
Credits
Disclaimer
WRAP - Neowebscript
Synopsis * Description

Add hard wrapping to a string of text

Synopsis

  • wrap string maxlength ?-html?

Description

Returns a modified string of consecutive characters. Hard wrapping is inserted at whitespace at or before maxlength number of characters. This command is very useful in conjunction with mail (refer to open_outbound_mail), Usenet postings (refer to open_post_news) and other environments that do not always perform automatic soft wrapping of text.

wrap normally performs hard wrapping by inserting newline characters. But using the -html switch, newlines can be replaced with <BR> tags to reproduce the effect of hard wrapping of text in an HTML document without relying on the <PRE></PRE> elements.

Copyright © 1995-1999 NeoSoft Inc., 1770 St. James Place, Suite 500, Houston, TX 77056 USA. All Rights Reserved