Work around issue #1094: SQL editor silently converts newlines. By showing a popup info, saying that file contains mixed line breaks and they were converted to Windows breaks.

This commit is contained in:
Ansgar Becker
2009-04-21 22:26:43 +00:00
parent 40ada7b69c
commit cbcdf27bbd

View File

@@ -5487,6 +5487,8 @@ begin
else
QueryMemoLineBreaks := LineBreaks;
end;
if QueryMemoLineBreaks = lbsMixed then
MessageDlg('This file contains mixed linebreaks. They have been converted to Windows linebreaks (CR+LF).', mtInformation, [mbOK], 0);
SynMemoQuery.SelText := filecontent;
SynMemoQuery.SelStart := SynMemoQuery.SelEnd;
SynMemoQuery.EndUpdate;