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:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user