0
在試圖從Freemarker移動到Rythm時,我得到了Rythm刪除了大量空白的效果。在節奏中意外的空白處理刪除想要的空白
我知道有@compact @nocompact和@escape選項。我嘗試了其中一些,但它們似乎對空白處理沒有影響。 根據http://rythmengine.org/doc/configuration.md#codegen_compact_enabled 默認處理是壓縮。
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()是一個錯誤?