From: <coe...@us...> - 2011-12-16 16:31:16
|
Revision: 388 http://mevislabmodules.svn.sourceforge.net/mevislabmodules/?rev=388&view=rev Author: coertmetz Date: 2011-12-16 16:31:05 +0000 (Fri, 16 Dec 2011) Log Message: ----------- CM: There was an unwanted space added. Modified Paths: -------------- trunk/Community/General/Modules/Macros/Strings/FormatFloat.py Modified: trunk/Community/General/Modules/Macros/Strings/FormatFloat.py =================================================================== --- trunk/Community/General/Modules/Macros/Strings/FormatFloat.py 2011-10-11 07:41:11 UTC (rev 387) +++ trunk/Community/General/Modules/Macros/Strings/FormatFloat.py 2011-12-16 16:31:05 UTC (rev 388) @@ -43,10 +43,14 @@ stringList = stringValue.split() outString = '' format = ctx.field("format").stringValue() + first = True for string in stringList : try: value = float(string) - outString += format % value + ' ' + outString += format % value + if not first: + outString += ' ' + first = False except : outString += ' ' ctx.field("output").setStringValue( outString ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |