commit 743c5a5: [Doc] Further fixes to doxydown
Vsevolod Stakhov
vsevolod at highsecure.ru
Thu Dec 27 18:28:06 UTC 2018
Author: Vsevolod Stakhov
Date: 2018-12-10 13:47:10 +0000
URL: https://github.com/rspamd/rspamd/commit/743c5a525bb55cf5c91105c2691db4320604b0dc
[Doc] Further fixes to doxydown
---
doc/doxydown/doxydown.pl | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/doc/doxydown/doxydown.pl b/doc/doxydown/doxydown.pl
index 96ebbbda3..993a8636e 100755
--- a/doc/doxydown/doxydown.pl
+++ b/doc/doxydown/doxydown.pl
@@ -68,9 +68,9 @@ EOD
my $id = $f->{'id'};
if ($f->{'brief'}) {
- print "> [`$name`](#$id): ". $f->{'brief'} . "\n\n";
+ print "* [`$name`](#$id): ". $f->{'brief'} . "\n";
} else {
- print "> [`$name`](#$id)\n\n";
+ print "* [`$name`](#$id)\n";
}
}
@@ -380,11 +380,15 @@ sub parse_function {
}
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'};
+
+ if ( $f->{'brief'} !~ /\.$/) {
+ $f->{'brief'} .= ".";
+ }
}
}
More information about the Commits
mailing list