mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-25 09:17:12 +01:00
wikiheaders.pl: Fix \sa tags that (incorrectly!) have "()" appended.
This commit is contained in:
parent
d115857c6f
commit
7390bc0e5e
@ -611,6 +611,7 @@ if ($copy_direction == 1) { # --copy-to-headers
|
||||
my @desclines = split /\n/, $v;
|
||||
foreach (@desclines) {
|
||||
s/\A(\:|\* )//;
|
||||
s/\(\)\Z//; # Convert "SDL_Func()" to "SDL_Func"
|
||||
$str .= "\\sa $_\n";
|
||||
}
|
||||
}
|
||||
@ -764,6 +765,7 @@ if ($copy_direction == 1) { # --copy-to-headers
|
||||
$sections{'Version'} = wordwrap($desc) . "\n";
|
||||
} elsif ($l =~ /\A\\sa\s+(.*)\Z/) {
|
||||
my $sa = $1;
|
||||
$sa =~ s/\(\)\Z//; # Convert "SDL_Func()" to "SDL_Func"
|
||||
$sections{'Related Functions'} = '' if not defined $sections{'Related Functions'};
|
||||
if ($wikitype eq 'mediawiki') {
|
||||
$sections{'Related Functions'} .= ":[[$sa]]\n";
|
||||
|
Loading…
Reference in New Issue
Block a user