Strip the gcc output
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 21 Apr 2009 13:04:13 +0000 (13:04 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 21 Apr 2009 13:04:13 +0000 (13:04 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2601 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BCreationPage.py

index 2ba4adc887872533f48c4e8e4a06373a66520a14..1e2f7fdc4723d488425329b5ad7cf572cde56ea0 100644 (file)
@@ -51,12 +51,12 @@ class BCreationPage(BWizardPage):
         toolchain_title = QTreeWidgetItem(QStringList([self.tr("Toolchain")]))
         toolchain_info = self.projectInfo("TOOLCHAIN")
         if "target" in toolchain_info:
-            toolchain_target = QTreeWidgetItem(toolchain_title, QStringList([self.tr("target: " + toolchain_info["target"])]))
+            toolchain_target = QTreeWidgetItem(toolchain_title, QStringList([self.tr("target: " + toolchain_info["target"].strip())]))
         version = ""
         if "version" in toolchain_info:
-            version += "version: " + "GCC " + toolchain_info["version"] + " "
+            version += "version: " + "GCC " + toolchain_info["version"].strip() + " "
         if "build" in toolchain_info:
-            version += "(" + toolchain_info["build"] + ")"
+            version += "(" + toolchain_info["build"].strip() + ")"
         if "version" in toolchain_info:
             toolchain_target = QTreeWidgetItem(toolchain_title, QStringList([version]))
         toolchain_path = QTreeWidgetItem(toolchain_title, QStringList([self.tr("path: " + os.path.normpath(toolchain_info["path"]))]))