I can certainly filter every single output file to get rid of the  
carriage returns, but it used to work and it seems like an unnecessary  
extra step. I'd much rather get to the bottom of why it started  
happening when I upgraded to TT2 2.20 and fix the underlying issue.

Dustin

On Apr 22, 2009, at 6:13 AM, Lee.M wrote:

>>
>> HTML file has an extra *two* carriage returns (control-M) at the end
>> of each line. Not a show-stopper, but it does make the files larger,
>> and they look a little silly when you view source in a browser. It
>> also wreaks havoc on the diff tool I use to detect changes on the  
>> live
>> website.
>>
>> Anyone have any idea A) what's going on, and/or B) how best to debug
>> this?
>
> ^M is a windows sort-of-kind-of-carriage return::
>
> Something simple like this will clean them up:
>
>     perl -pi -e 'my $m = chr(13);s{$m}{}g;' file/in/question
>
> HTH :)
>
> --
> Lee.M
>
> _______________________________________________
> templates mailing list
> templates@template-toolkit.org
> http://mail.template-toolkit.org/mailman/listinfo/templates


_______________________________________________
templates mailing list
templates@template-toolkit.org
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to