[ 
https://issues.apache.org/jira/browse/FREEMARKER-52?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16025964#comment-16025964
 ] 

Daniel Dekany edited comment on FREEMARKER-52 at 5/26/17 10:02 AM:
-------------------------------------------------------------------

Indeed, the {{XHTMLOutputFormat}} 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.)


was (Author: ddekany):
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)

Reply via email to