[rt-devel] Re: RT 3.0.1 I18N patch proposal

Autrijus Tang autrijus at autrijus.org
Tue May 6 12:05:50 EDT 2003


On Tue, May 06, 2003 at 05:41:02PM +0200, Remy Chibois wrote:
> In fact, after numerous tries, the first regexp in the function "transforms"
> \n to \s (haven't yet figured out why). If you put some debug statments in
> that area of RT, you'll see that $trailing is "\s\t" in case of a multiline
> MIME words string and "\s" when at the end of that string. Thus, the "original"
> regexp catches both cases, and only at the end of the string.

But in case of multiline strings, shouldn't it be

	$trailing =~ s/\s?\t?$//mg;

instead of 

	$trailing =~ s/\s?\t?$//g;

so "$" matches multiple end of lines?  Or did I miss something?

/Autrijus/



More information about the Rt-devel mailing list