We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dad653 commit 3be57ecCopy full SHA for 3be57ec
build-scripts/wikiheaders.pl
@@ -2972,10 +2972,12 @@ sub generate_quickref {
2972
}
2973
2974
if (defined $returns) {
2975
+ # Check for md link in return type: ([SDL_Renderer](SDL_Renderer) *)
2976
+ # This would've prevented the next regex from working properly (it'd leave " *)")
2977
+ $returns =~ s/\A\(\[.*?\]\((.*?)\)/\($1/ms;
2978
# Chop datatype in parentheses off the front.
- if(!($returns =~ s/\A\([^\[]*\[[^\]]*\]\([^\)]*\)[^\)]*\) //ms)) {
- $returns =~ s/\A\([^\)]*\) //ms;
- }
2979
+ $returns =~ s/\A\(.*?\) //;
2980
+
2981
$returns = dewikify($wikitype, $returns);
2982
$str .= ".SH RETURN VALUE\n";
2983
$str .= "$returns\n";
0 commit comments