You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Jacques Le Roux (JIRA)" <ji...@apache.org> on 2015/10/16 13:53:05 UTC

[jira] [Closed] (OFBIZ-6671) In freemarker template(FTL) Whitespace is getting parsed,i want to stop that parsing,for a single ftl file.

     [ https://issues.apache.org/jira/browse/OFBIZ-6671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux closed OFBIZ-6671.
----------------------------------
    Resolution: Not A Problem
      Assignee: Jacques Le Roux

This works OOTB and in the Online FreeMarker Template Tester which though uses FreeMarker 2.3.23.

TO test get to http://freemarker-online.kenshoo.com/
enter 
{code}
<#ftl strip_whitespace=false>
SAMPLE _ PRODUCT
<#assign test = "SAMPLE _ PRODUCT">
${test}
{code}

Which proves it works in both cases
* plain text
* using a value
the whitespaces are not stripped

You can test "OOTB" by replacing the content of 
applications/order/webapp/ordermgr/order/viewimage.ftl
by
SAMPLE _ PRODUCT
<#assign test = "SAMPLE _ PRODUCT">
${test}
{code}
and get to https://localhost:8443/ordermgr/control/viewimage?orderContentTypeId=IMAGE_URL&orderId=Demo1002


> In freemarker template(FTL)  Whitespace is getting parsed,i want to stop that  parsing,for a single ftl file.
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-6671
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6671
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL APPLICATIONS
>            Reporter: Praveen Kumar
>            Assignee: Jacques Le Roux
>            Priority: Blocker
>
> <#ftl strip_whitespace=false> is not working in version 2.3.21 and 2.3.22 so please provide solution as soon as possible.
> Example
> SAMPLE _ PRODUCT -in database stored with space.Whereas in Free marker same data is parsing without space SAMPLE_PRODUCT. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)