* Add enclair_db option to UserDB.pm. Allows logging of enclair password
[interchange.git] / code / Filter / lspace_to_nbsp.filter
1 # Copyright 2002-2007 Interchange Development Group and others
2
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.  See the LICENSE file for details.
7
8 # $Id: lspace_to_nbsp.filter,v 1.2 2007-03-30 23:40:44 pajamian Exp $
9
10 CodeDef lspace_to_nbsp Filter
11 CodeDef lspace_to_nbsp Description Leading SPACE to nbsp
12 CodeDef lspace_to_nbsp Routine <<EOR
13 sub {
14         my $str = shift;
15         $str =~ s/^( +)/'&nbsp;' x length($1)/emg;
16         return $str;
17 }
18 EOR
19