syntax:functions:compact
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
syntax:functions:compact [2016/06/07 23:35] – created dmitry | syntax:functions:compact [2021/08/14 21:58] (current) – [Examples] craigt | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Compact(text) ====== | ====== Compact(text) ====== | ||
+ | Category: | ||
- | Removes | + | \\ |
- | Note that line breaks and other special characters are not counted as whitespace. | + | =====Description===== |
+ | This function removes | ||
- | ^ | + | \\ |
- | | < | + | =====Arguments===== |
- | | < | + | ^Argument^Type^Description^ |
- | | < | + | |text|Text|The text value to remove repeated spaces from.| |
- | === See also === | + | **Return value type:** Text |
- | * [[syntax: | + | |
- | * [[syntax: | + | \\ |
+ | =====Remarks===== | ||
+ | There needs to be two or more repeated spaces in //text// for this function to have an effect. | ||
+ | |||
+ | As this function reduces repeated spaces to a single space, it cannot be used to completely remove leading and trailing whitespace. | ||
+ | |||
+ | |||
+ | \\ | ||
+ | =====Examples===== | ||
+ | |||
+ | compact( ' | ||
+ | |||
+ | compact( ' | ||
+ | |||
+ | len(compact( ' | ||
+ | |||
+ | \\ | ||
+ | ===== See also ===== | ||
+ | * [[syntax: | ||
+ | * [[syntax: |
syntax/functions/compact.txt · Last modified: 2021/08/14 21:58 by craigt