summaryrefslogtreecommitdiff
path: root/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Tools.java
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Tools.java')
-rw-r--r--Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Tools.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Tools.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Tools.java
index e6647d2..33dc521 100644
--- a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Tools.java
+++ b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Tools.java
@@ -354,7 +354,7 @@ public class Tools {
// Finish previous line
//
if (!isCopied) {
- strReturn = strReturn + strTemp + DataType.UNIX_LINE_SEPARATOR;
+ strReturn = strReturn + strTemp + DataType.LINE_SEPARATOR;
strTemp = "";
}
//
@@ -376,8 +376,12 @@ public class Tools {
strTemp = strTemp + " " + ss;
continue;
} else {
- strReturn = strReturn + strTemp + DataType.UNIX_LINE_SEPARATOR;
- strTemp = ss + " ";
+ strReturn = strReturn + strTemp + DataType.LINE_SEPARATOR;
+ if ((index == s.length - 1) && (!ss.equals(""))) {
+ strReturn = strReturn + ss;
+ } else {
+ strTemp = ss + " ";
+ }
isCopied = true;
}
}
@@ -632,7 +636,7 @@ public class Tools {
count = wholeString.split(searchString).length;
return count;
}
-
+
/**
* Check the input data is empty or not
*