forked from mia/Aegisub
Fixed SRT generation
Originally committed to SVN as r187.
This commit is contained in:
parent
ae8f256e78
commit
aa4a7fdac4
1 changed files with 3 additions and 13 deletions
|
@ -189,19 +189,9 @@ void SRTSubtitleFormat::DialogueToSRT(AssDialogue *current,std::list<AssEntry*>:
|
|||
}
|
||||
|
||||
// Fix line breaks
|
||||
size_t cur = 0;
|
||||
while ((cur = current->Text.find(_T("\\n"),cur)) != wxString::npos) {
|
||||
current->Text.replace(cur,2,_T("\r\n"));
|
||||
}
|
||||
cur = 0;
|
||||
while ((cur = current->Text.find(_T("\\N"),cur)) != wxString::npos) {
|
||||
current->Text.replace(cur,2,_T("\r\n"));
|
||||
}
|
||||
cur = 0;
|
||||
while ((cur = current->Text.find(_T("\r\n\r\n"),cur)) != wxString::npos) {
|
||||
current->Text.replace(cur,2,_T("\r\n"));
|
||||
cur = 0;
|
||||
}
|
||||
current->Text.Replace(_T("\\n"),_T("\r\n"),true);
|
||||
current->Text.Replace(_T("\\N"),_T("\r\n"),true);
|
||||
current->Text.Replace(_T("\r\n\r\n"),_T("\r\n"),true);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue