[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Requiring trailing spaces in slices (was: Debian WWW CVS: dmartinez)



On Mon, May 28, 2001 at 11:17:46AM +0200, Martin Schulze wrote:
> Thus what do you think about this patch for such situations?
> In short, slices will be added a space at the end of a line when
> the a slice is splitted.
[...]
> +<:
> +my $slices = q{
>  	[EN:See the Debian <A href="$(HOME)/contact">contact page</A> for information on contacting us.:]
[...]
>  	[RU:óÍÏÔÒÉÔÅ ËÁË Ó ÎÁÍÉ Ó×ÑÚÁÔØÓÑ ÎÁ ÓÔÒÁÎÉÃÅ <A href="$(HOME)/contact">ËÁË Ó ÎÁÍÉ Ó×ÑÚÁÔØÓÑ</A>.:]
> +};
> +$slices =~ s/([^:][^ \]])\n/$1 \n/g;
> +print $slices;
> +:>

Presuming it works... I'm in no condition right now to be able to figure out
that regexp, too much partying :)

Be sure to test how much does it slow down the build if you're going to add
this to a lot of pages (by adding it to the important templates).

-- 
Digital Electronic Being Intended for Assassination and Nullification



Reply to: