Subversion Repositories filter_foundry

Rev

Rev 206 | Rev 259 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 206 Rev 226
Line 71... Line 71...
71
                                        for( j = chunk,q = outbuf ; j-- ; )
71
                                        for( j = chunk,q = outbuf ; j-- ; )
72
                                                if(*r == CR){
72
                                                if(*r == CR){
73
                                                        *q++ = '\\';
73
                                                        *q++ = '\\';
74
                                                        *q++ = 'r';
74
                                                        *q++ = 'r';
75
                                                        ++r;
75
                                                        ++r;
-
 
76
                                                }else if (*r == LF) {
-
 
77
                                                       
-
 
78
                                                        // This can only happen with Windows or Linux.
-
 
79
                                                        // Linux is not supported, and Windows always combines LF with CR. So we can ignore LF.
-
 
80
                                                        ++r;
76
                                                }else
81
                                                }else
77
                                                        *q++ = *r++;
82
                                                        *q++ = *r++;
78
                                        *q++ = '\r';
83
                                        *q++ = '\r';
79
                                        *q = 0;
84
                                        *q = 0;
80
                                        p = cat(p,outbuf);
85
                                        p = cat(p,outbuf);