docServerUserLandCom picture
Contents
Frontier Site

string.wrap

Syntax string.wrap (text)

Params text is a string to be wrapped.

Action Removes single hard return characters, but leaves double return characters intact.

Return The wrapped string.

Examples string.wrap ("The car\ris down the lane.")

   » "The car is down the lane."

string.wrap ("The car\ris down the lane.\r\rIt's dark.")

   » "The car is down the lane.\r\rIt's dark."


© Copyright 1992-2026 UserLand Software. Email: webmaster@userland.com.