mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-11-11 13:05:16 +00:00
wikiheaders: Strip [[wiki hyperlink]] from See Also fields.
This commit is contained in:
@@ -840,6 +840,7 @@ if ($copy_direction == 1) { # --copy-to-headers
|
|||||||
foreach (@desclines) {
|
foreach (@desclines) {
|
||||||
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/\A\/*//;
|
s/\A\/*//;
|
||||||
$str .= "\\sa $_\n";
|
$str .= "\\sa $_\n";
|
||||||
}
|
}
|
||||||
@@ -1355,6 +1356,7 @@ if ($copy_direction == 1) { # --copy-to-headers
|
|||||||
foreach (@desclines) {
|
foreach (@desclines) {
|
||||||
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/\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.
|
||||||
s/\A\s+//;
|
s/\A\s+//;
|
||||||
|
|||||||
Reference in New Issue
Block a user