节奏中意外的空白处理删除了想要的空白

unexpected whitespace handling in rythm removes wanted blanks

在尝试从 Freemarker 转移到 Rythm 时,我得到的效果是 Rythm 去除了很多白色space。

我知道有 @compact @nocompact 和 @escape options.I 尝试了其中一些,但它们似乎对 whitespace 处理没有影响。 根据 http://rythmengine.org/doc/configuration.md#codegen_compact_enabled 默认处理是压缩。

节奏似乎删除了我积极尝试插入的白色space,例如

no whitespace here
@nocompact() {
  @for (int i=0;i<2;i++) {
    please keep the whitespace
  }
}
no whitespace here

将导致

no whitespace here
 please keep the whitespace
please keep the whitespace
no whitespace here

有效地将白色space更改为单个space。

怎么才能保留原来的白色space设置呢?

未运行的 nocompact() 是错误吗?

我认为这是一个错误。请在 https://github.com/greenlaw110/rythm/issues

上提出问题