删除字符串中的多余空白字符

时间:2016-09-16 09:18:37

标签: crystal-reports

我需要在字符串中只保留一个空白字符。下面显示了样本。

"today  is a nice day"                       == > "today is a nice day"

"today     is      a nice day"               == > "today is a nice day"

"today  is    a nice       day"              == > "today is a nice day"

"today       is  a       nice day         "  == > "today is a nice day"

提前感谢您的帮助。

1 个答案:

答案 0 :(得分:2)

最适合我的方式是

右键点击字段 - >格式字段 - >段

将文本解释更改为HTML文本,然后单击“确定”。