mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-02 08:59:28 +02:00
First of a series of patches from Steve and Richard to fix delivering local and remote help pages.
This commit is contained in:
parent
c8ea76b80e
commit
d628de846b
@ -227,16 +227,16 @@ void HelpSystem::ShowHelpDialog(wxWindow *parent, const wxString &PageName)
|
|||||||
wxString localHelpPage;
|
wxString localHelpPage;
|
||||||
wxString webHelpPage;
|
wxString webHelpPage;
|
||||||
wxString releasePageName;
|
wxString releasePageName;
|
||||||
wxString anchor;
|
wxString anchor; // optional part of URL after (and including) the '#'
|
||||||
if (PageName.Find('#', true) != wxNOT_FOUND)
|
if (PageName.Find('#', true) != wxNOT_FOUND)
|
||||||
{ // need to split anchor off into separate variable
|
{ // need to split anchor off into separate variable
|
||||||
releasePageName= PageName.BeforeLast('#');
|
releasePageName= PageName.BeforeLast('#');
|
||||||
anchor= PageName.AfterLast('#');
|
anchor = wxT("#") + PageName.AfterLast('#');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
releasePageName = PageName;
|
releasePageName = PageName;
|
||||||
anchor = wxT("");
|
anchor = wxT("");
|
||||||
}
|
}
|
||||||
// This bit of code replicates the name transformations performed by the
|
// This bit of code replicates the name transformations performed by the
|
||||||
// clean_filename routine in scripts/mw2html_audacity/mw2html.py
|
// clean_filename routine in scripts/mw2html_audacity/mw2html.py
|
||||||
|
Loading…
x
Reference in New Issue
Block a user