Merge pull request #59 from eclipse/me_manifest

[MANIFEST.MF-cleanup] splitting lines should also work on UNIX newlines
This commit is contained in:
Moritz Eysholdt 2016-08-09 11:16:19 +02:00 committed by GitHub
commit 4a0a1591a7

View file

@ -61,7 +61,7 @@ public class MergeableManifest extends Manifest {
public static String make512Safe(StringBuffer lines) {
if (lines.length() > 512) {
StringBuilder result = new StringBuilder(lines.length());
String[] splitted = lines.toString().split("\\r\\n");
String[] splitted = lines.toString().split("\\r?\\n");
for(String string: splitted) {
if (string.length() > 512) {
int idx = 510;