mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-05 15:03:43 +00:00
wikiheaders: fixed see-also conversion
This commit is contained in:
parent
5ff49955ab
commit
d748a454a8
1 changed files with 2 additions and 1 deletions
|
@ -923,6 +923,7 @@ if ($copy_direction == 1) { # --copy-to-headers
|
||||||
s/\A(\:|\* )//;
|
s/\A(\:|\* )//;
|
||||||
s/\(\)\Z//; # Convert "SDL_Func()" to "SDL_Func"
|
s/\(\)\Z//; # Convert "SDL_Func()" to "SDL_Func"
|
||||||
s/\[\[(.*?)\]\]/$1/; # in case some wikilinks remain.
|
s/\[\[(.*?)\]\]/$1/; # in case some wikilinks remain.
|
||||||
|
s/\[(.*?)\]\(.*?\)/$1/; # in case some wikilinks remain.
|
||||||
s/\A\/*//;
|
s/\A\/*//;
|
||||||
$str .= "\\sa $_\n";
|
$str .= "\\sa $_\n";
|
||||||
}
|
}
|
||||||
|
@ -1510,10 +1511,10 @@ if ($copy_direction == 1) { # --copy-to-headers
|
||||||
my @desclines = split /\n/, $v;
|
my @desclines = split /\n/, $v;
|
||||||
my $nextstr = '';
|
my $nextstr = '';
|
||||||
foreach (@desclines) {
|
foreach (@desclines) {
|
||||||
print("DESCLINE: '$_'\n");
|
|
||||||
s/\A(\:|\* )//;
|
s/\A(\:|\* )//;
|
||||||
s/\(\)\Z//; # Convert "SDL_Func()" to "SDL_Func"
|
s/\(\)\Z//; # Convert "SDL_Func()" to "SDL_Func"
|
||||||
s/\[\[(.*?)\]\]/$1/; # in case some wikilinks remain.
|
s/\[\[(.*?)\]\]/$1/; # in case some wikilinks remain.
|
||||||
|
s/\[(.*?)\]\(.*?\)/$1/; # in case some wikilinks remain.
|
||||||
s/\A\*\s*\Z//;
|
s/\A\*\s*\Z//;
|
||||||
s/\A\/*//;
|
s/\A\/*//;
|
||||||
s/\A\.BR\s+//; # dewikify added this, but we want to handle it.
|
s/\A\.BR\s+//; # dewikify added this, but we want to handle it.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue