[
https://issues.apache.org/jira/browse/SLING-9854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Radu Cotescu closed SLING-9854.
-------------------------------
> 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.0.34, Scripting HTL Engine
> 1.1.0-1.4.0, Scripting HTL Engine 1.2.0-1.4.0, Scripting HTL Engine
> 1.3.0-1.4.0, Scripting HTL Engine 1.4.0-1.4.0
> Reporter: Radu Cotescu
> Assignee: Radu Cotescu
> Priority: Major
> 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)