Name

strip — trim leading and trailing whitespace

ATTRIBUTES

Attribute Pos. Req. Default Description

DESCRIPTION

The filter eliminates whitespace appearing at the beginning or end of input.

BEHAVIOR

This tag does not appear to be affected by, or affect, the rest of Interchange.

EXAMPLES

Example: Filter example

"[filter strip]  XX  [/filter]"

          

NOTES

In Interchange version 4.6.0, this symbol changed type from Filter to System Tag.

AVAILABILITY

strip is available in Interchange versions:

4.6.0, 4.6.0, 4.8.0, 5.0.0, 5.2.0, 5.4.0, 5.6.0, 5.7.0 (git-head)

SOURCE

Interchange 5.7.0:

Source: code/SystemTag/strip.coretag
Lines: 20


# 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: strip.coretag,v 1.4 2007-03-30 23:40:49 pajamian Exp $

UserTag strip               hasEndTag
UserTag strip               PosNumber    0
UserTag strip               Version      $Revision: 1.4 $
UserTag strip               Routine      <<EOR
sub {
local($_) = shift;
s/^\s+//;
s/\s+$//;
return $_;
}
EOR

AUTHORS

Interchange Development Group

SEE ALSO

no_white(7ic)

DocBook! Interchange!