Fix over-escaping that resulted in Recombine Lines stripping 't' rather than tabs. Closes #1418.

Originally committed to SVN as r6361.
This commit is contained in:
Thomas Goyne 2012-01-25 19:07:27 +00:00
parent a4eb7ef528
commit 71a4e38c7d

View file

@ -62,8 +62,8 @@ SubtitlesGrid::SubtitlesGrid(wxWindow *parent, agi::Context *context, const wxS
}
static void trim_text(AssDialogue *diag) {
static wxRegEx start("^( |\\t|\\\\[nNh])+");
static wxRegEx end("( |\\t|\\\\[nNh])+$");
static wxRegEx start("^( |\t|\\\\[nNh])+");
static wxRegEx end("( |\t|\\\\[nNh])+$");
start.ReplaceFirst(&diag->Text, "");
end.ReplaceFirst(&diag->Text, "");
}