+1 On Wed, Aug 29, 2012 at 2:46 PM, Marius Dumitru Florea <[email protected]> wrote: > Hi devs, > > The {{velocity}} macro has a nice filter that removes the whitespace > from the start of each line. This allows us to format (indent) the > Velocity code without generating whitespace garbage. > > Recently I had to move some Velocity macros from a wiki page to a > Velocity template file and the absence of this filter turned out to be > a pita. Even if my macros were generating HTML, consecutive > whitespaces were collapsed into a single one which was still visible, > breaking my layout a little. Some of my macros were generating Strings > which now contained a lot of whitespace. I had to update my functional > tests to trim the actual text taken from the UI whenever asserting > something. > > WDYT about applying the same filter when parsing Velocity templates? > Do you see any problems with ignoring the whitespace at the start of > the line? > > Thanks, > Marius > _______________________________________________ > devs mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

