Patch #3211 2011-09-17 15:22

scarphin

Brief and cleaner output format for autoversioning plg.
Download
3211-Brief_and_clea.patch (1.0 KB)
Category
Plugin::Refinement
Status
Open
Close date
 
Assigned to
 
Index: AutoVersioning.cpp
===================================================================
--- AutoVersioning.cpp    (revision 7386)
+++ AutoVersioning.cpp    (working copy)
@@ -809,8 +809,8 @@
 
     if (!changes.IsEmpty())
     {
-        changes.Prepend(_T("        -"));
-        changes.Replace(_T("\n"), _T("\n        -"));
+        changes.Prepend(_T("-"));
+        changes.Replace(_T("\n"), _T("\n-"));
 
         wxDateTime actualDate = wxDateTime::Now();
         wxString changesTitle = cbC2U(GetConfig().ChangesLog.AppTitle.c_str());
@@ -852,10 +852,9 @@
 
         wxString changesOutput = _T("");
 
-        changesOutput << actualDate.Format(_T("%d %B %Y\n"));
-        changesOutput << _T("   ") << changesTitle << _T("\n");
-        changesOutput << _T("\n     Change log:\n");
-        changesOutput << changes << _T("\n\n");
+        changesOutput << changesTitle << _T("\n");
+        changesOutput << _T("\n");
+        changesOutput << changes << _T("\n\n\n");
         changesOutput << changesCurrentContent;
 
         wxFile file;