forked from bentglasstube/blosxom-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstrip_unix_comments-v1i0
62 lines (37 loc) · 1.23 KB
/
strip_unix_comments-v1i0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package strip_unix_comments;
use strict;
sub start { 1; }
sub story {
# We really only care about the last item but
# just popping @_ might cause weirdness in the
# future so...
my (undef, undef, undef, undef, undef, $sr_body) = @_;
$$sr_body = join("\n", grep { ! /^#/ } (split("\n",$$sr_body)));
}
return 1;
__END__
=head1 NAME
strip_unix_comments - remove any line beginning with a I<#> character.
=head1 SYNOPSIS
Put this file in your I<bloxsom> plug-ins directory.
=head1 DESCRIPTION
Remove any line beginning with a I<#> character.
By convention most Unix tools treat the I<#> character and any content
following it up to the end of the line as comments which are neither
interpreted or displayed outside of the document itself.
It a bloxsom context, you might want to CVS your source files and include
a variety of version control stamps (Id, Log, etc.) that should not be
displayed when rendered as HTML.
=head1 VERSION
1.0
=head1 DATE
$Date: 2003/03/19 18:24:38 $
=head1 AUTHOR
Aaron Straup Cope
=head1 SEE ALSO
http://www.raelity.org/apps/blosxom
http://www.raelity.org/apps/blosxom/plugin.shtml
=head1 LICENSE
This is free software, you may use it and distribute it under
the same terms as Perl itself.
=cut