Cn Whitespace Cleaner

Cleans and normalizes extra spaces, newlines, and tabs in Chinese text to tidy up whitespace characters.

Audits

Pending

Install

openclaw skills install cn-whitespace-cleaner

cn-whitespace-cleaner

空白字符清理工具。清理文本中的多余空格、换行、制表符。

功能

  • 清理多余空格
  • 清理换行符
  • 清理所有制表符
  • 规范化空白字符

使用方法

python3 scripts/clean_space.py --text "你好   世界"
python3 scripts/clean_space.py --file input.txt --output output.txt

纯Python标准库。