Freemarker から Rythm に移行しようとすると、Rythm が多くの空白を削除するという効果が得られます。
@compact @nocompact および @escape オプションがあることを認識しています。これらのいくつかを試しましたが、空白の処理には影響がないようです。http://rythmengine.org/doc/configuration.md#codegen_compact_enabledによると 、デフォルトの処理は圧縮です。
リズムは、私が積極的に挿入しようとする空白を削除するようです。
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() はバグですか?