Apply patch FELIX-3119 to skip whitespace in manifest parser.


git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1172747 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/utils/src/main/java/org/apache/felix/utils/manifest/Parser.java b/utils/src/main/java/org/apache/felix/utils/manifest/Parser.java
index 48a8da1..26839d9 100644
--- a/utils/src/main/java/org/apache/felix/utils/manifest/Parser.java
+++ b/utils/src/main/java/org/apache/felix/utils/manifest/Parser.java
@@ -23,10 +23,8 @@
 
 public final class Parser
 {
-
     private Parser() { }
 
-
     public static Clause[] parseHeader(String header) throws IllegalArgumentException
     {
         Clause[] clauses = null;
@@ -201,12 +199,12 @@
             }
         }
 
-        if (sb.length() > 0)
+        String s = sb.toString().trim();
+        if (s.length() > 0)
         {
-            list.add(sb.toString().trim());
+            list.add(s);
         }
 
         return (String[]) list.toArray(new String[list.size()]);
     }
-
-}
+}
\ No newline at end of file