summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-12-10 13:47:10 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-12-10 13:47:10 +0000
commit743c5a525bb55cf5c91105c2691db4320604b0dc (patch)
tree60ef60892165fb1b101269a2998eb067502a6845 /doc
parent6655c2dea642ad479e2cbc68127f2edb5b495271 (diff)
downloadrspamd-743c5a525bb55cf5c91105c2691db4320604b0dc.tar.gz
rspamd-743c5a525bb55cf5c91105c2691db4320604b0dc.zip
[Doc] Further fixes to doxydown
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/doxydown/doxydown.pl14
1 files 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'} .= ".";
+ }
}
}