Trim trailing punctionation from doc URLs.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18089
This commit is contained in:
parent
bc14a841cb
commit
f3b57c20af
|
@ -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 ) );
|
||||
|
|
Loading…
Reference in New Issue