[Checkins] SVN: transaction/trunk/ Remove double newline between log entries

Tres Seaver tseaver at palladion.com
Fri May 7 11:35:15 EDT 2010


Log message for revision 112144:
  Remove double newline between log entries
  
  it makes doing smarter formatting harder.
  
  See LP #142464.
  

Changed:
  U   transaction/trunk/CHANGES.txt
  U   transaction/trunk/transaction/_transaction.py
  U   transaction/trunk/transaction/tests/test_transaction.py

-=-
Modified: transaction/trunk/CHANGES.txt
===================================================================
--- transaction/trunk/CHANGES.txt	2010-05-07 15:34:17 UTC (rev 112143)
+++ transaction/trunk/CHANGES.txt	2010-05-07 15:35:15 UTC (rev 112144)
@@ -6,6 +6,9 @@
 
 - Updated tests to remove use of deprecated ``zope.testing.doctest``.
 
+- LP #142464:  remove double newline between log entries:  it makes doing
+  smarter formatting harder.
+
 1.0.0 (2009-07-24)
 ------------------
 

Modified: transaction/trunk/transaction/_transaction.py
===================================================================
--- transaction/trunk/transaction/_transaction.py	2010-05-07 15:34:17 UTC (rev 112143)
+++ transaction/trunk/transaction/_transaction.py	2010-05-07 15:35:15 UTC (rev 112144)
@@ -485,7 +485,7 @@
     def note(self, text):
         text = text.strip()
         if self.description:
-            self.description += "\n\n" + text
+            self.description += "\n" + text
         else:
             self.description = text
 

Modified: transaction/trunk/transaction/tests/test_transaction.py
===================================================================
--- transaction/trunk/transaction/tests/test_transaction.py	2010-05-07 15:34:17 UTC (rev 112143)
+++ transaction/trunk/transaction/tests/test_transaction.py	2010-05-07 15:35:15 UTC (rev 112144)
@@ -94,7 +94,7 @@
         t.note('This is a note.')
         self.assertEqual(t.description, 'This is a note.')
         t.note('Another.')
-        self.assertEqual(t.description, 'This is a note.\n\nAnother.')
+        self.assertEqual(t.description, 'This is a note.\nAnother.')
 
         t.abort()
 



More information about the checkins mailing list