[
https://issues.apache.org/jira/browse/FREEMARKER-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Dekany resolved FREEMARKER-52.
-------------------------------------
Resolution: Fixed
Fix Version/s: 2.3.27-incubating
Indeed, the {{XHTML}} abbreviation wasn't recognized; fix committed for 2.3.27.
Until that, you can use the full expression, which is
{{freemarker.core.XHTMLOutputFormat()}}. The {{()}} is required, because as the
JavaDoc of `Configuration.setSetting` says, without that we are in backward
compatibility mode, which didn't know {{INSTANCE}}. (Plus the cause exception
was not as intended, which made it harder to figure out what's going on.)
> Unable to set XHTML as default output format via properties
> -----------------------------------------------------------
>
> Key: FREEMARKER-52
> URL: https://issues.apache.org/jira/browse/FREEMARKER-52
> Project: Apache Freemarker
> Issue Type: Bug
> Affects Versions: 2.3.24-incubating
> Reporter: Aleksey Kaigorodov
> Priority: Minor
> Fix For: 2.3.27-incubating
>
>
> I'm unable to set XHTML as default output format via properties
> The following {{output_format}} values don't work for me:
> * XHTML
> * XHTMLOutputFormat
> * XHTMLOutputFormat.INSTANCE
> * freemarker.core.XHTMLOutputFormat
> * freemarker.core.XHTMLOutputFormat.INSTANCE
> I use {{HTMLOutputFormat}} value as a workaround.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)