You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Radu Cotescu (Jira)" <ji...@apache.org> on 2020/10/23 13:15:00 UTC
[jira] [Created] (SLING-9854) Formatting string is removed when no
formatting type is provided
Radu Cotescu created SLING-9854:
-----------------------------------
Summary: Formatting string is removed when no formatting type is provided
Key: SLING-9854
URL: https://issues.apache.org/jira/browse/SLING-9854
Project: Sling
Issue Type: Bug
Components: Scripting
Affects Versions: Scripting HTL Engine 1.4.0-1.4.0, Scripting HTL Engine 1.3.0-1.4.0, Scripting HTL Engine 1.2.0-1.4.0, Scripting HTL Engine 1.1.0-1.4.0, Scripting HTL Engine 1.0.34
Reporter: Radu Cotescu
Assignee: Radu Cotescu
Fix For: Scripting HTL Engine 1.4.6-1.4.0
The HTL expression
{code}
${'hello, world' @ format=''}
{code}
renders nothing, despite the fact that the specification mentions the following \[0\]:
{quote}
Type of formatting will be decided based on:
* the type option, if present (accepted values are string, date and number)
* placeholders (eg: \{0\}) in the pattern, triggers string formatting
* type of format option object, when the type is a Date or a Number
* default, fallback to string formatting
{quote}
\[0\] - https://github.com/adobe/htl-spec/blob/1.4/SPECIFICATION.md#122-format
--
This message was sent by Atlassian Jira
(v8.3.4#803005)