This is an automated email from the ASF dual-hosted git repository.
ddekany pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/freemarker-site.git
The following commit(s) were added to refs/heads/asf-site by this push:
new fedb8035 Manual: Typo fix, and refined compatibility warning.
fedb8035 is described below
commit fedb8035b3bd5b1efe5caba98c209f1faaaea76a
Author: ddekany <[email protected]>
AuthorDate: Wed Oct 18 09:00:15 2023 +0200
Manual: Typo fix, and refined compatibility warning.
---
docs/dgui_template_exp.html | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/docs/dgui_template_exp.html b/docs/dgui_template_exp.html
index c1b9c8f5..344d5d23 100644
--- a/docs/dgui_template_exp.html
+++ b/docs/dgui_template_exp.html
@@ -2101,16 +2101,16 @@ Jerry</pre> </div>
<code class="inline-code">!</code>, like <code
class="inline-code">1 + x</code>,
<em>always</em> use parentheses, like
<code class="inline-code">${x!(1 + y)}</code> or <code
class="inline-code">${(x!1) +
- y)}</code>, depending on which interpretation you meant.
+ y}</code>, depending on which interpretation you meant.
That's needed because due to a programming mistake in
FreeMarker
2.3.x, the precedence of <code class="inline-code">!</code>
(when it's used as
default value operator) is very low at its right side. This
means that, for example, <code class="inline-code">${x!1 +
y}</code> is
misinterpreted by FreeMarker as <code class="inline-code">${x!(1
+ y)}</code>
while it should mean <code class="inline-code">${(x!1) +
y}</code>. This
- programming error will be fixed in FreeMarker 2.4, so you should
- not utilize this wrong behavior, or else your templates will
- break with FreeMarker 2.4!</p>
+ programming error will be possibly fixed in some future version
+ (maybe 2.4), and you should not utilize this wrong behavior, so
+ that the fix can be enabled in your project!</p>
</div>