Author: tack
Date: Wed Apr 18 23:03:43 2007
New Revision: 2642

Modified:
   trunk/base/src/config.py

Log:
Strip newlines from start/end of group description.


Modified: trunk/base/src/config.py
==============================================================================
--- trunk/base/src/config.py    (original)
+++ trunk/base/src/config.py    Wed Apr 18 23:03:43 2007
@@ -332,7 +332,7 @@
         Convert object into a string to write into a config file.
         """
         ret  = []
-        desc = unicode_to_str(self._desc).replace('\n', '\n# ')
+        desc = unicode_to_str(self._desc.strip('\n')).replace('\n', '\n# ')
         if self._name:
             sections = [ x.capitalize() for x in prefix[:-1].split('.') + 
[self._name] ]
             breadcrumb = ' | '.join(filter(len, sections))

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to