Menu

Diff of /trunk/Src/USaveSourceMgr.pas [r2628] .. [r2629]  Maximize  Restore

Switch to side-by-side view

--- a/trunk/Src/USaveSourceMgr.pas
+++ b/trunk/Src/USaveSourceMgr.pas
@@ -218,10 +218,7 @@
   RawSource: string;      // raw source code
   Hiliter: TFileHiliter;  // object used to highlight source code
 begin
-  // TODO: change dlg to have truncate source comments check box?
-  RawSource := GenerateSource(
-    fSaveDlg.CommentStyle, Preferences.TruncateSourceComments
-  );
+  RawSource := GenerateSource(fSaveDlg.CommentStyle, fSaveDlg.TruncateComments);
   // Highlight the raw source as required
   Hiliter := TFileHiliter.Create(
     fSaveDlg.UseSyntaxHiliting and IsHilitingSupported(FileType),
@@ -291,6 +288,7 @@
   fSaveDlg.Title := GetDlgTitle;
   fSaveDlg.HelpKeyword := GetDlgHelpKeyword;
   fSaveDlg.CommentStyle := Preferences.SourceCommentStyle;
+  fSaveDlg.TruncateComments := Preferences.TruncateSourceComments;
   fSaveDlg.UseSyntaxHiliting := Preferences.SourceSyntaxHilited;
   fSaveDlg.OnPreview := PreviewHandler;
   fSaveDlg.OnHiliteQuery := HiliteQueryHandler;
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.