syntax:functions:compact
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
syntax:functions:compact [2018/08/15 08:35] – 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.1534336530.txt.gz · Last modified: 2018/08/15 08:35 by dmitry