#...# expression leaves superflous space behind for the first #
hi there
I run CF 9.01 and have a nasty white space problem:
I populate a form field like this:
---
... value="#application.utils.FormatTS(now())#" ...
---
This leaves behind in the source code generated the followng:
----
value=" 2011-01-22 03:34:03"
---
The empty space later generates a problem. I have observed this bug throughout all versions of CF. One can avoid this in all situation where one can concatenate strings like in "some test" & application.utils.FormatTS() ... this will not geneate the empty space.
CF's IsDate () returns NO if the space is there ...LSIsDate () returns YES ... inconsistent behavior IMHO.
BTW: The function FormatTS () does NOT generate the leading space. It is the way how CF generates the code
BTW: I know that I can get rid of the space with trim() ... however, it's a mess to be forced to do so in ALL processing of such constructs ...
Any remedy known for this? Or any reason WHY CF does it like this? How can I seduce it not to generate suc code?
Thanks
Martin
