mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-01 23:07:45 +08:00
wikiheaders: Fixed See Also section in --copy-to-headers.
This broke when the list bullet markdown was fixed, and then the fixed wiki data was copied back to the headers.
This commit is contained in:
@@ -1384,7 +1384,7 @@ if ($copy_direction == 1) { # --copy-to-headers
|
|||||||
my $v = dewikify($wikitype, $related);
|
my $v = dewikify($wikitype, $related);
|
||||||
my @desclines = split /\n/, $v;
|
my @desclines = split /\n/, $v;
|
||||||
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/\[\[(.*?)\]\]/$1/; # in case some wikilinks remain.
|
||||||
s/\[(.*?)\]\(.*?\)/$1/; # in case some wikilinks remain.
|
s/\[(.*?)\]\(.*?\)/$1/; # in case some wikilinks remain.
|
||||||
|
|||||||
Reference in New Issue
Block a user