mailr22530 - /trunk/devel_scripts/log_converter.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on March 26, 2014 - 15:57:
Author: bugman
Date: Wed Mar 26 15:57:21 2014
New Revision: 22530

URL: http://svn.gna.org/viewcvs/relax?rev=22530&view=rev
Log:
Improvements for the log converter script.

This is for the scripted used to convert SVN messages into a format for the 
relax release
announcement.

The script now handles spacing better.  Multi-line messages are now 
concatenated into a single line
using a double space between separate sentences and a single space in all 
other cases.


Modified:
    trunk/devel_scripts/log_converter.py

Modified: trunk/devel_scripts/log_converter.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/devel_scripts/log_converter.py?rev=22530&r1=22529&r2=22530&view=diff
==============================================================================
--- trunk/devel_scripts/log_converter.py        (original)
+++ trunk/devel_scripts/log_converter.py        Wed Mar 26 15:57:21 2014
@@ -58,10 +58,10 @@
 
     # Whitespace.
     if len(msg):
-        if search('[a-zA-Z]$', msg[-1]):
+        if search('\.$', msg[-1]):
+            msg += '  '
+        else:
             msg += ' '
-        elif search('\.$', msg[-1]):
-            msg += '  '
 
     # Add the line (without the newline char).
     msg += line[:-1]




Related Messages


Powered by MHonArc, Updated Wed Mar 26 16:20:02 2014