git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@194 7335b...
authorhche10x <hche10x@7335b38e-4728-0410-8992-fb3ffe349368>
Tue, 26 Jun 2007 02:36:43 +0000 (02:36 +0000)
committerhche10x <hche10x@7335b38e-4728-0410-8992-fb3ffe349368>
Tue, 26 Jun 2007 02:36:43 +0000 (02:36 +0000)
Source/Python/String.py

index a102eb8..59ec644 100644 (file)
@@ -13,6 +13,7 @@
 \r
 import DataType\r
 import os.path\r
+import string\r
 \r
 def MergeModulePcds(pcds, pcdsFixedAtBuild, pcdsPatchableInModule, pcdsFeatureFlag, pcdsDynamic):\r
     #[ ['PcdName|PcdGuid|PcdType', 'IA32|X64|IPF|EBC'], ...]\r
@@ -208,7 +209,7 @@ def GetSingleValueOfKeyFromLines(Lines, Dictionary, CommentCharacter, KeySplitCh
                 #Remove comments and white spaces\r
                 LineList[1] = CleanString(LineList[1], CommentCharacter)\r
                 if ValueSplitFlag:\r
-                    Value = LineList[1].replace('\\','/').split(ValueSplitCharacter)\r
+                    Value = map(string.strip, LineList[1].replace('\\','/').split(ValueSplitCharacter))\r
                 else:\r
                     Value = CleanString(LineList[1], CommentCharacter).splitlines()\r
                 \r