1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Getting closer to mw2html behaviour - cunning RegEx expression due to David B.

This commit is contained in:
martynshaw99
2014-08-28 22:55:19 +00:00
parent dfe26ec6e5
commit 4c6bdd3865

View File

@@ -298,7 +298,8 @@ void HelpSystem::ShowHelpDialog(wxWindow *parent,
// Replace spaces with "+" // Replace spaces with "+"
releasePageName.Replace(wxT(" "), wxT("+"), true); releasePageName.Replace(wxT(" "), wxT("+"), true);
// Reduce multiple underscores to single underscores // Reduce multiple underscores to single underscores
releasePageName.Replace(wxT("__"), wxT("_"), true); re.Compile(wxT("__+"));
re.ReplaceAll(&releasePageName, (wxT("_")));
// Replace "_." with "." // Replace "_." with "."
releasePageName.Replace(wxT("_."), wxT("."), true); releasePageName.Replace(wxT("_."), wxT("."), true);
// Concatenate file name with file extension and anchor. // Concatenate file name with file extension and anchor.