Browse Source

[Doc] Further fixes to doxydown

tags/1.9.0
Vsevolod Stakhov 5 years ago
parent
commit
743c5a525b
1 changed files with 9 additions and 5 deletions
  1. 9
    5
      doc/doxydown/doxydown.pl

+ 9
- 5
doc/doxydown/doxydown.pl View File

my $id = $f->{'id'}; my $id = $f->{'id'};


if ($f->{'brief'}) { if ($f->{'brief'}) {
print "> [`$name`](#$id): ". $f->{'brief'} . "\n\n";
print "* [`$name`](#$id): ". $f->{'brief'} . "\n";
} else { } else {
print "> [`$name`](#$id)\n\n";
print "* [`$name`](#$id)\n";
} }
} }


} }


if ( !$f->{'brief'} && $f->{'data'} ) { if ( !$f->{'brief'} && $f->{'data'} ) {
$f->{'data'} =~ /^(.*?)(?:(?:[.:]\s)|\n).*/;


if ( $1 ) {
$f->{'brief'} = "$1.";

if ( $f->{'data'} =~ /^(.*?)(?:(?:[.:]\s|$)|\n).*/ ) {
$f->{'brief'} = "$1";
chomp $f->{'brief'}; chomp $f->{'brief'};

if ( $f->{'brief'} !~ /\.$/) {
$f->{'brief'} .= ".";
}
} }
} }



Loading…
Cancel
Save