mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Minor simplification
This commit is contained in:
parent
fb7e6e4f74
commit
2a4afa22b1
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user