146a147,148 > FTempStream: TStringStream; > FNormalizedData: string; 148a151 > FTempStream := TStringStream.Create; 151c154,165 < FXMLConf.SaveToStream(Stream); --- > // Save to temporary string stream. > // EOL marker will depend on OS (#13#10 or #10), > // because TXMLConfig automatically changes EOL to platform default. > FXMLConf.SaveToStream(FTempStream); > // Normalize EOL marker, as data will be saved as binary data. > // Saving without normalization would lead to different binary > // data when saving on different platforms. > FNormalizedData := AdjustLineBreaks(FTempStream.DataString, tlbsLF); > // Write normalized data, so the binary data in the lfm file > // is consistent for different platforms. > if FNormalizedData <> '' then > Stream.WriteBuffer(FNormalizedData[1], Length(FNormalizedData)); 154a169 > FTempStream.Free; 181c196,200 < XMLConf.SetValue('Item' + i.ToString + '/SVG', FItems[i].Text); --- > // Below, use AdjustLineBreaks() to normalize EOL markers. > // Otherwise, FItems[i].Text will use EOL markers depending on the > // current platform. This leads to different binary data in the lfm file. > XMLConf.SetValue('Item' + i.ToString + '/SVG', > AdjustLineBreaks(FItems[i].Text, tlbsLF));