mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-05 22:30:29 +00:00
docs: fix man page return value section generation
This commit is contained in:
parent
2dad6534b8
commit
3be57ec774
1 changed files with 5 additions and 3 deletions
|
|
@ -2972,10 +2972,12 @@ __EOF__
|
||||||
}
|
}
|
||||||
|
|
||||||
if (defined $returns) {
|
if (defined $returns) {
|
||||||
|
# Check for md link in return type: ([SDL_Renderer](SDL_Renderer) *)
|
||||||
|
# This would've prevented the next regex from working properly (it'd leave " *)")
|
||||||
|
$returns =~ s/\A\(\[.*?\]\((.*?)\)/\($1/ms;
|
||||||
# Chop datatype in parentheses off the front.
|
# Chop datatype in parentheses off the front.
|
||||||
if(!($returns =~ s/\A\([^\[]*\[[^\]]*\]\([^\)]*\)[^\)]*\) //ms)) {
|
$returns =~ s/\A\(.*?\) //;
|
||||||
$returns =~ s/\A\([^\)]*\) //ms;
|
|
||||||
}
|
|
||||||
$returns = dewikify($wikitype, $returns);
|
$returns = dewikify($wikitype, $returns);
|
||||||
$str .= ".SH RETURN VALUE\n";
|
$str .= ".SH RETURN VALUE\n";
|
||||||
$str .= "$returns\n";
|
$str .= "$returns\n";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue