support https:// links in generatedoc.c as well

This commit is contained in:
Thomas Bernard 2018-11-19 13:26:21 +01:00
parent 5f1cda38aa
commit 4094425f27
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C

View File

@ -172,10 +172,14 @@ static const char * Export_help_table(FILE * f, unsigned int page)
const char * prefix = "";
char * link = strstr(table[index].Text, "http://");
if (link == NULL)
{
link = strstr(table[index].Text, "https://");
if (link == NULL)
{
link = strstr(table[index].Text, "www.");
prefix = "http://";
}
}
if (link != NULL)
{
char * link_end = strchr(link, ' ');