MathTop

squeeze_string 函数

把文本中每段连续空白压缩为一个空格。

语法

  • Squeeze(text)
  • squeeze_string(text)

参数与选项

text文本值,通常写在引号中。

示例

  1. 压缩空白Squeeze('a b\n c')返回 a b c。