forked from mia/Aegisub
SRTSubtitleFormat: don't mix line endings in non-Windows
Originally committed to SVN as r6941.
This commit is contained in:
parent
b2fb39b67f
commit
ef65262920
1 changed files with 4 additions and 0 deletions
|
@ -505,7 +505,11 @@ void SRTSubtitleFormat::WriteFile(const AssFile *src, wxString const& filename,
|
|||
StripComments(copy.Line);
|
||||
RecombineOverlaps(copy.Line);
|
||||
MergeIdentical(copy.Line);
|
||||
#ifdef _WIN32
|
||||
ConvertNewlines(copy.Line, "\r\n", false);
|
||||
#else
|
||||
ConvertNewlines(copy.Line, "\n", false);
|
||||
#endif
|
||||
|
||||
// Write lines
|
||||
int i=1;
|
||||
|
|
Loading…
Reference in a new issue