[
https://issues.apache.org/jira/browse/OFBIZ-6671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14960554#comment-14960554 ]
Jacques Le Roux edited comment on OFBIZ-6671 at 10/16/15 11:53 AM:
-------------------------------------------------------------------
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
{code}
<#ftl strip_whitespace=false>
SAMPLE _ PRODUCT
<#assign test = "SAMPLE _ PRODUCT">
${test}
{code}
and get to
https://localhost:8443/ordermgr/control/viewimage?orderContentTypeId=IMAGE_URL&orderId=Demo1002was (Author: 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)