Add an "emptyLines" filter to the preprocessor that strips empty lines from the output. r=Hixie (not part of the build)

This commit is contained in:
bsmedberg%covad.net 2004-08-19 13:48:49 +00:00
Родитель a281cdd885
Коммит e0e8da35c4
2 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -447,6 +447,12 @@ sub unfilter {
package filter;
sub emptyLines {
my($stack, $text) = @_;
$text = "" if $text eq "\n";
return $text;
}
sub spaces {
my($stack, $text) = @_;
$text =~ s/ +/ /gos; # middle spaces

Просмотреть файл

@ -177,6 +177,9 @@ Filters
The following filters are supported:
emptyLines
Strips blank lines from the output.
slashslash
Strips everything from the first two consecutive slash (/)
characters until the end of the line.