> Dustin Frazier wrote:
...
>> I had everything working great in my previous Windows environment, but
>> with the fresh setup, I have a strange, maddening issue that I've
>> searched and experimented with, but I can't seem to sort out. In my
>> new TT2 environment, when I generate an HTML page from a template
>> (using a main wrapper and one or two other templates), my resulting
>> HTML file has an extra *two* carriage returns (control-M) at the end
>> of each line.
...
Dustin,
The best approach is to create a reduced test case. Ideally it would be
one, or maybe two, files that demonstrate the problem. Make the test
case files accessible online. If you post the file to the list, the
line ending convention of your source files (which might play a part in
the confusion) will be lost.
Given that, I'm sure there are members on this list who can figure it
out. But trying to guess without seeing your code could result in you
waiting a long time for an answer.
Since I'm posting here anyway, I wanted to address this bit of
unwarranted windows bashing posted by someone who isn't Dustin:
^M is a windows sort-of-kind-of-carriage return::
No, actually, ^M is defined as carriage return by the ASCII standard.
That is as true for unix as it is for windows. Don't confuse the
meaning of the character with the separate concept of the line
termination convention.
_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates