1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Minor simplification

This commit is contained in:
Jonas Fonseca 2006-01-15 18:06:44 +01:00 committed by Jonas Fonseca
parent fb7e6e4f74
commit 2a4afa22b1

View File

@ -21,14 +21,12 @@ usage($HELP) if $opt_h or @ARGV < 1;
sub put_section { sub put_section {
if ($title) { if ($title) {
print "\n$title\n"; print "\n$title\n";
$_ = $title; $title =~ s/[^-]/-/g;
s/[^-]/-/g; print "$title\n" if not $indent;
print "$_\n" if not $indent;
} }
if ($body) { if ($body) {
$_ = $body; $body =~ s/#newline#/$indent/g;
s/#newline#/$indent/g; print "$body\n";
print "$_\n";
} }
$title = $body = undef; $title = $body = undef;
} }