mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-26 05:02:36 +01:00
Pac files with long lines should now be saved correctly
git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@922 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
parent
6d3afee05e
commit
b48e179e69
@ -687,12 +687,10 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
|
||||
else
|
||||
textBuffer = encoding.GetBytes(text);
|
||||
|
||||
// write text length
|
||||
UInt16 length = (UInt16)(textBuffer.Length + 4);
|
||||
fs.Write(BitConverter.GetBytes(length), 0, 2);
|
||||
|
||||
byte length = (byte)(textBuffer.Length+4);
|
||||
fs.WriteByte(length);
|
||||
|
||||
// TODO: What is this?
|
||||
fs.WriteByte(0);
|
||||
fs.WriteByte(0x0a); // sometimes 0x0b?
|
||||
fs.WriteByte(0xfe);
|
||||
fs.WriteByte(0x02); //2=centered, 1=left aligned, 0=right aligned,
|
||||
|
Loading…
Reference in New Issue
Block a user