Trim trailing punctionation from doc URLs.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18089
This commit is contained in:
Jeff Young 2024-05-27 14:16:49 +01:00
parent bc14a841cb
commit f3b57c20af
1 changed files with 6 additions and 0 deletions

View File

@ -118,6 +118,12 @@ public:
doc += ch;
}
// Trim trailing punctuation
static wxString punct = wxS( ".,:;" );
if( punct.find( doc.Last() ) >= 0 )
doc = doc.Left( doc.Length() - 1 );
}
wxString esc_desc = EscapeHTML( UnescapeString( desc ) );