]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Don't need to add extra quotes when UI string from file
authorBin Wang <binx.a.wang@intel.com>
Thu, 10 Aug 2017 08:54:57 +0000 (16:54 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Sat, 12 Aug 2017 04:40:17 +0000 (12:40 +0800)
when the UI string is read from files, we don't need to add the extra
quotes. Otherwise, it will cause UI name has this extra quotes.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Bin Wang <binx.a.wang@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
BaseTools/Source/Python/GenFds/UiSection.py

index d54e3b2a6d04375f4593f90ee9bb7ff74583373d..419e1ee3584fddfda20d5f0709c26827936b2130 100644 (file)
@@ -1,7 +1,7 @@
 ## @file\r
 # process UI section generation\r
 #\r
 ## @file\r
 # process UI section generation\r
 #\r
-#  Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2007 - 2017, Intel Corporation. All rights reserved.<BR>\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
@@ -66,7 +66,6 @@ class UiSection (UiSectionClassObject):
             FileNameStr = GenFdsGlobalVariable.MacroExtend(FileNameStr, Dict)\r
             FileObj = open(FileNameStr, 'r')\r
             NameString = FileObj.read()\r
             FileNameStr = GenFdsGlobalVariable.MacroExtend(FileNameStr, Dict)\r
             FileObj = open(FileNameStr, 'r')\r
             NameString = FileObj.read()\r
-            NameString = '\"' + NameString + "\""\r
             FileObj.close()\r
         else:\r
             NameString = ''\r
             FileObj.close()\r
         else:\r
             NameString = ''\r