简体   繁体   English

在MVEL中格式化Orb标签

[英]Formatting orb tags in MVEL

如何删除MVEL 2.0模板化结果中由@code {},@ if {},@ foreach {},@ end {}等或标签生成的空白行?

If you don't want whitespace before and after the tags, then don't CR before and after: 如果您不希望标签前后有空格,则不要在标签前后进行CR:

for example: Items: @foreach{item : stuff}@{item}@{','} 例如:项目:@foreach {item:stuff} @ {item} @ {','}

If you break it onto multiple lines, the whitespace is preserved. 如果将其分成多行,则保留空白。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM