[interchange-cvs] interchange - docelic modified 2 files

interchange-cvs at icdevgroup.org interchange-cvs at icdevgroup.org
Fri Feb 16 17:29:21 EST 2007


User:      docelic
Date:      2007-02-16 22:29:21 GMT
Modified:  code/Filter lspace2nbsp.filter
Added:     code/Filter space2nbsp.filter
Log:
* Add the usual GPL header to lspace2nbsp
* provide a closely related filter, space2nbsp, that converts all
  (and not just leading) space to nbsp.

Revision  Changes    Path
1.2       +4 -0      interchange/code/Filter/lspace2nbsp.filter


rev 1.2, prev_rev 1.1
Index: lspace2nbsp.filter
===================================================================
RCS file: /var/cvs/interchange/code/Filter/lspace2nbsp.filter,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- lspace2nbsp.filter	18 Jan 2007 19:05:47 -0000	1.1
+++ lspace2nbsp.filter	16 Feb 2007 22:29:20 -0000	1.2
@@ -1,3 +1,7 @@
+# Copyright 2002-2007 Interchange Development Group (http://www.icdevgroup.org/)
+# Licensed under the GNU GPL v2. See file LICENSE for details.
+# $Id: lspace2nbsp.filter,v 1.2 2007/02/16 22:29:20 docelic Exp $
+
 CodeDef lspace2nbsp Filter
 CodeDef lspace2nbsp Description Leading SPACE to nbsp
 CodeDef lspace2nbsp Routine <<EOR



1.1                  interchange/code/Filter/space2nbsp.filter


rev 1.1, prev_rev 1.0
Index: space2nbsp.filter
===================================================================
# Copyright 2002-2007 Interchange Development Group (http://www.icdevgroup.org/)
# Licensed under the GNU GPL v2. See file LICENSE for details.
# $Id: space2nbsp.filter,v 1.1 2007/02/16 22:29:20 docelic Exp $

CodeDef space2nbsp Filter
CodeDef space2nbsp Description All SPACE to nbsp
CodeDef space2nbsp Routine <<EOR
sub {
        my $str = shift;
        $str =~ s/( +)/'&nbsp;' x length($1)/emg;
        return $str;
}
EOR








More information about the interchange-cvs mailing list