From cbcdf27bbdb4e174246204a449881398137af645 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Tue, 21 Apr 2009 22:26:43 +0000 Subject: [PATCH] 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. --- source/main.pas | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/main.pas b/source/main.pas index c90e4d27..919de8a0 100644 --- a/source/main.pas +++ b/source/main.pas @@ -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;