Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (21 sloc) 699 Bytes
# Copyright 2002-2007 Interchange Development Group and others
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. See the LICENSE file for details.
#
# $Id: space_to_nbsp.filter,v 1.3 2007-03-30 23:40:45 pajamian Exp $
CodeDef space_to_nbsp Filter
CodeDef space_to_nbsp Description All SPACE to nbsp
CodeDef space_to_nbsp Routine <<EOR
sub {
my ($str, $tag, $opt) = @_;
if ( $opt ) {
$str =~ s/ +/&nbsp;/g;
} else {
$str =~ s/ /&nbsp;/g;
}
$str;
}
EOR
Jump to Line
Something went wrong with that request. Please try again.