FELIX-2112: Carriage returns are removed from instructions, but the lines should be trimmed alltogether

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@912028 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java b/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
index 756681d..d9da0be 100644
--- a/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
+++ b/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
@@ -267,7 +267,7 @@
             }
             else
             {
-                value = value.replaceAll( "[\r\n]", "" );
+                value = value.replaceAll( "\\p{Blank}*[\r\n]\\p{Blank}*", "" );
             }
 
             transformedInstructions.put( key, value );