在rythm中意外的空白处理删除了想要的空白

时间:2015-03-31 19:16:18

标签: rythm

在试图从Freemarker转移到Rythm时,我得到了Rythm删除了大量空白的效果。

我知道有@compact @nocompact和@escape选项。我尝试了其中的一些,但它们似乎对空白处理没有影响。 根据{{​​3}} 默认处理是压缩。

Rythm似乎删除了我积极尝试插入的空格,例如。

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

有效地将空格更改为单个空格。

如何保留原始空白设置?

无效的nocompact()是一个错误吗?

1 个答案:

答案 0 :(得分:1)

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

上解决问题