Spring and Freemarker

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Spring and Freemarker

Hi list,

I am now working on a project using spring framework and freemarker. And i encounter a problem about <compress> tag in freemarker. The freemarker doc said
" Specify the transform parameter single_line = true to always compress to a single space instead of a line break."

And i did set "single_line=true" in Shared variables. In spring it looked like:
  <bean id="freemarkerConfig" class="org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer">
    <property name="templateLoaderPath" value="/"/>
    <property name="freemarkerVariables">
          <prop key="single_line">true</prop>

But still it compressed while spaces using line break. What I missed?