Pre-save transforms/zh

预保存转换（Pre-save transforms, PST）是一项发生在内容被保存之前的转换. 它们由对应 子类中的 函数实现.

Wikitext
对于，的 按下列顺序应用转换：


 * 空字符
 * 移除空字符.


 * 尾部空格
 * 移除文本后的空格（根据PHP的[//php.net/rtrim rtrim]）


 * 行尾
 * 行尾的 和 将被规范化为.




 * − Note that this order has the nontrivial effect of not allowing template substitutions within a signature.
 * − Note that this order has the nontrivial effect of not allowing template substitutions within a signature.


 * becomes   becomes
 * becomes   becomes

JSON
applies the following transformations, in order:


 * Beautify JSON
 * standardizes the formatting (“pretty”, i. e. split across lines and indented)


 * Line endings
 * Line endings  as well as   are normalized to.