REBOL 3 Docs | Guide | Concepts | Functions | Datatypes | Errors |
TOC < Back Next > | Updated: 3-Aug-2010 Edit History |
Converts tabs in a string to spaces (default tab size 4). (Modifies)
Arguments:
string [any-string!]
Refinements:
/size - Specifies the number of spaces per tab
number [integer!]
See also:
The REBOL language default tab size is four spaces. detab will remove tabs from the entire string even beyond the first non-space character.
The series passed to this function is modified as a result.
text: "^-lots^-^-of^-^-tabs^-^-^-^-here"
print detab copy text
lots of tabs here
Use the /size refinement for other sizes such as eight:
print detab/size text 8
lots of tabs here
TOC < Back Next > | REBOL.com - WIP Wiki | Feedback Admin |